You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Rails 6.1 (possibly Rails 6?) no longer supports defining the environment with the -e pram. As a result the runner would execute in the development environtment which caused a bunch of errors on production obviously. To fix, I needed to append "RAILS_ENV=production" to the bundle command in schedule.rb.
set :bundle_command, "RAILS_ENV=#{ENV["RAILS_ENV"]} bundle exec"
This fixed the issue but wondering if anyone else is seeing this issue and whether something needs to be fixed in the gem itself.
The text was updated successfully, but these errors were encountered:
The readme specifies that the default definition of "runner" is
It seems that Rails 6.1 (possibly Rails 6?) no longer supports defining the environment with the -e pram. As a result the runner would execute in the development environtment which caused a bunch of errors on production obviously. To fix, I needed to append "RAILS_ENV=production" to the bundle command in schedule.rb.
This fixed the issue but wondering if anyone else is seeing this issue and whether something needs to be fixed in the gem itself.
The text was updated successfully, but these errors were encountered: