You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you add another ampersand between RAILS_ENV and bundle you're ignoring the production environment, i guess you have configured your jobs to run only run in the development env
@karthickms Please open your own issue rather than re-using unrelated tickets.
@yepengfan This is not a solution for any real problem and I think you're confused about what's going on here. You have an answer that should point you in the right direction. If you still have a problem, please explain what you mean by "not working" in more detail by including cron logs and potentially output from running the same command at a shell.
I got an issue that the cron job does not run properly on ubuntu server. I use capistrano with whenever gem.
I found the solution is to add ampersand after
RAILS_ENV=production
.Changing from:
0 9 * * 5 /bin/bash -l -c 'cd /var/vhosts/myserver/current && RAILS_ENV=production bundle exec rake ...... --silent'
To
0 9 * * 5 /bin/bash -l -c 'cd /var/vhosts/myserver/current && RAILS_ENV=production && bundle exec rake ...... --silent'
Is there any configuration for whenever to solve this issue? Every time I need to manually change crontab file after deployment.
Thanks in advance.
The text was updated successfully, but these errors were encountered: