Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments for Elastic Beanstalk Whenever #1076

Open
phinjensen opened this issue Nov 11, 2017 · 1 comment
Open

Comments for Elastic Beanstalk Whenever #1076

phinjensen opened this issue Nov 11, 2017 · 1 comment

Comments

@phinjensen
Copy link
Contributor

phinjensen commented Nov 11, 2017

Comments for https://www.endpointdev.com/blog/2015/01/elastic-beanstalk-whenever/
By Kent Krenrich

To enter a comment:

  1. Log in to GitHub
  2. Leave a comment on this issue.
@SuperAndreyEG
Copy link

SuperAndreyEG commented Jan 30, 2022

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: |
#!/usr/bin/env bash
. /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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants