Skip to content

Instantly share code, notes, and snippets.

@JoseCed
Created June 6, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoseCed/664ad2516d034605cb8d31705a2795c2 to your computer and use it in GitHub Desktop.
Save JoseCed/664ad2516d034605cb8d31705a2795c2 to your computer and use it in GitHub Desktop.
Caused by:
DEBUG [f24c3917] NameError: uninitialized constant Dotenv
DEBUG [f24c3917] /home/deploy/lustyPalace/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `block in load_missing_constant'
/home/deploy/lustyPalace/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
/home/deploy/lustyPalace/shared/bundle/ruby/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in `load_missing_constant'
/home/deploy/lustyPalace/releases/20190606142938/config/application.rb:23:in `<top (required)>'
/home/deploy/lustyPalace/releases/20190606142938/Rakefile:4:in `require_relative'
/home/deploy/lustyPalace/releases/20190606142938/Rakefile:4:in `<top (required)>'
/home/deploy/lustyPalace/shared/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/deploy/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
DEBUG [f24c3917] (See full trace by running task with --trace)
@anyelopetit
Copy link

anyelopetit commented Jun 8, 2019

En config/application.rb cambia:

Dotenv::Railtie.load

Por:

if ['development', 'test'].include? ENV['RAILS_ENV']
  Dotenv::Railtie.load
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment