Compare commits

...

1 commit

Author SHA1 Message Date
921bfd73cc Read RACK_ENV but apply RAILS_ENV
Ruby whenever uses RAILS_ENV in crontab.
2025-10-07 10:46:55 +02:00
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'

View file

@ -10,6 +10,10 @@ require 'redcarpet'
include GetText
if ENV['RAILS_ENV']
set :environment, ENV['RAILS_ENV']
end
require_relative 'mj'
require_relative 'config/environments/defaults.rb'
require_relative "config/environments/#{settings.environment}"