After researching still the Heroku push error
keithmgould opened this issue · comments
Keith Gould commented
Steps to reproduce
I've tried two variations of the Gemfile:
# scoped globally
gem 'dotenv-rails', :require => 'dotenv/rails-now'
and:
group :development, :test do
gem 'dotenv-rails'
end
In application.rb:
if ['development', 'test'].include? ENV['RAILS_ENV']
Dotenv::Railtie.load
end
When I deploy to Heroku I get the:
NameError: uninitialized constant Dotenv
REMOVE ANY SENSITIVE INFORMATION FROM YOUR OUTPUT
Expected behavior
A deploy to heroku
Actual behavior
A failed deploy
System configuration
dotenv version:
dotenv (2.7.5)
dotenv-rails (2.7.5)
dotenv (= 2.7.5)
railties (>= 3.2, < 6.1)
Rails version:
Rails 6.0.2.2
Ruby version:
ruby 2.7.1p83
Keith Gould commented
I believe this was resolved on the Github side. It "magically" works today. Closing.