From 39def9a73e9a3b5c750b3cfa04ac7206939d516c Mon Sep 17 00:00:00 2001 From: = Date: Sat, 19 May 2018 02:29:22 +0700 Subject: [PATCH] Replaced :environment with :remote_environment --- lib/mina/whenever/tasks.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mina/whenever/tasks.rb b/lib/mina/whenever/tasks.rb index 6e71089..c12dbeb 100644 --- a/lib/mina/whenever/tasks.rb +++ b/lib/mina/whenever/tasks.rb @@ -2,7 +2,7 @@ namespace :whenever do desc 'Clear crontab' - task clear: :environment do + task clear: :remote_environment do comment "Clear contrab for #{fetch(:whenever_name)}" in_path fetch(:current_path) do command "#{fetch(:bundle_bin)} exec whenever --clear-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'" @@ -10,7 +10,7 @@ end desc 'Update crontab' - task update: :environment do + task update: :remote_environment do comment "Update crontab for #{fetch(:whenever_name)}" in_path fetch(:current_path) do command "#{fetch(:bundle_bin)} exec whenever --update-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'" @@ -18,7 +18,7 @@ end desc 'Write crontab' - task write: :environment do + task write: :remote_environment do comment "Write crontab for #{fetch(:whenever_name)}" in_path fetch(:current_path) do command "#{fetch(:bundle_bin)} exec whenever --write-crontab #{fetch(:whenever_name)} --set 'environment=#{fetch(:rails_env)}&path=#{fetch(:current_path)}'"