Skip to content

Commit

Permalink
Disable the building of the crontab by default
Browse files Browse the repository at this point in the history
Rather than having to SSH in and remove the crontab manually don't build
one by default and then SSH in for the first server deployed.
  • Loading branch information
pixeltrix committed Jun 27, 2016
1 parent dd4fa9b commit 825552c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/package_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def after_install_script
# Run cron jobs only on workers, as webservers autoscale up and down.
# ${SERVER_TYPE} is pre-populated for the deploy user by the build scripts
su - deploy -c 'if [ ${SERVER_TYPE} = "worker" ] ; then cd /home/deploy/epetitions/current && bundle exec whenever -w ; else echo not running whenever ; fi'
# su - deploy -c 'if [ ${SERVER_TYPE} = "worker" ] ; then cd /home/deploy/epetitions/current && bundle exec whenever -w ; else echo not running whenever ; fi'
SCRIPT
end

Expand Down

0 comments on commit 825552c

Please sign in to comment.