Read RACK_ENV but apply RAILS_ENV
Ruby whenever uses RAILS_ENV in crontab.
This commit is contained in:
parent
fa1a58bea2
commit
921bfd73cc
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
if ENV['RAILS_ENV']
|
||||
set :environment, ENV['RAILS_ENV']
|
||||
if ENV['RACK_ENV']
|
||||
set :environment, ENV['RACK_ENV']
|
||||
end
|
||||
|
||||
set :output, 'vedia.log'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue