Skip to content

Commit

Permalink
Move whenever to the bundle exec block
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
  • Loading branch information
jvanbaarsen committed Dec 18, 2015
1 parent d74f10c commit b96c48f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/web.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ run:
hook: bundle_exec
cmd:
- su intercity -c 'bundle install --deployment --verbose --without test --without development'
- su intercity -c 'gem install backup'
- gem install backup
- su intercity -c 'bundle exec rake db:migrate'
- su intercity -c 'bundle exec rake assets:precompile'
- su intercity -c 'bundle exec rake intercity:seed_plugins'
- su intercity -c 'bundle exec whenever -c -f /var/www/intercity/config/backup_schedule.rb'

- file:
path: /usr/local/bin/rails
Expand Down Expand Up @@ -172,10 +173,3 @@ run:
mkdir -p /shared/backups
chown -R intercity:www-data /shared/backups
fi
hooks:
after_bundle_exec:
- cd: $home
- cmd:
- "whenever -c -f /var/www/intercity/config/backup_schedule.rb"

0 comments on commit b96c48f

Please sign in to comment.