Read RACK_ENV but apply RAILS_ENV

Ruby whenever uses RAILS_ENV in crontab.
This commit is contained in:
ricola 2025-10-07 10:24:23 +02:00
parent fa1a58bea2
commit 921bfd73cc
2 changed files with 6 additions and 2 deletions

View file

@ -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'