Open phinjensen opened 7 years ago
I was able to deploy app with config like this
files: "/opt/elasticbeanstalk/hooks/appdeploy/post/99_update_cron.sh": mode: "000755" owner: root group: root content: |
. /opt/elasticbeanstalk/support/envvars
. /opt/elasticbeanstalk/support/envvars.d/sysenv
su -c "cd $EB_CONFIG_APP_CURRENT; bundle exec whenever --update-cron --set='environment=$RACK_ENV'" - $EB_CONFIG_APP_USER
but it seems that cron job in not running. Do you know how to fix it?
schedule.rb is like this
ENV.each_key do |key| env key.to_sym, ENV[key] end
set :output, '/log/cron.log'
every 1.minute do runner 'DedicatedServer.ping_all' end
Comments for https://www.endpointdev.com/blog/2015/01/elastic-beanstalk-whenever/ By Kent Krenrich
To enter a comment: