From 511cbf45655df614dd9c3c0e4328413347108266 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 23 Mar 2023 10:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E6=89=A7=E8=A1=8Cra?= =?UTF-8?q?ke=E4=BB=BB=E5=8A=A1=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/special_commit.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tasks/special_commit.rake b/lib/tasks/special_commit.rake index 922c51cfe..ab6c63767 100644 --- a/lib/tasks/special_commit.rake +++ b/lib/tasks/special_commit.rake @@ -1,5 +1,8 @@ +# 执行示例 bundle exec rake "special_commit:load[yystopf, pig]" +# RAILS_ENV=production bundle exec rake "special_commit:load[yystopf, pig]" +# namespace :special_commit do - desc "batch_add_issues" + desc "Sync Special Commit to Cache" task :load, [:login, :identifier] => :environment do |t, args| owner = Owner.find_by(login: args.login) project = Project.find_by(user_id: owner&.id, identifier: args.identifier)