diff options
| author | Alban Peignier | 2016-08-31 11:03:09 +0200 |
|---|---|---|
| committer | Alban Peignier | 2016-08-31 11:03:09 +0200 |
| commit | 62ae1074e7536dd170b0214ed339b7ad9323967d (patch) | |
| tree | 388e4938b844f31152df04c732d5ca3b41694235 /config/deploy.rb | |
| parent | 98debbeaac00dbf1aa2c752521d5878776c540dc (diff) | |
| download | chouette-core-62ae1074e7536dd170b0214ed339b7ad9323967d.tar.bz2 | |
Add additionnal_path in whenever variables to complete crontab PATH. Refs #1524
Diffstat (limited to 'config/deploy.rb')
| -rw-r--r-- | config/deploy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 99e3bab12..9171b51b4 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -24,7 +24,7 @@ require "bundler/capistrano" require 'whenever/capistrano' # Whenever -set :whenever_variables, ->{ "'environment=#{fetch :whenever_environment}&bundle_command=bin/bundle exec'" } # invoke bin/bundle to use 'correct' ruby environment +set :whenever_variables, ->{ "'environment=#{fetch :whenever_environment}&bundle_command=bin/bundle exec'&additionnal_path=/var/lib/gems/2.2.0/bin" } # invoke bin/bundle to use 'correct' ruby environment set :whenever_command, "sudo /usr/local/sbin/whenever-sudo" # use sudo to change www-data crontab set :whenever_user, "www-data" # use www-data crontab |
