0
My application was already running for some time without problems, I myself configured the environment in a virtual machine. I had to stop the server and when I went startar again I had this little surprise.
Below picture with the error generated.
uninitialized Constant Rails::Application::YAML (Nameerror)
/home/Rails/. rvm/Gems/ruby-2.2.0/Gems/railties-4.2.0/lib/Rails/application.Rb:377:in secrets'
/var/www/nginx/bday.advance.local/config/environments/production.rb:72:in
block in '
/home/Rails/. rvm/Gems/ruby-2.2.0/Gems/railties-4.2.0/lib/Rails/railtie.Rb:210:in instance_eval'
/home/rails/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/railtie.rb:210:in
configure'
/var/www/Nginx/bday.advance.local/config/Environments/Production.Rb:1:in <top (required)>'
/home/rails/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:598:in
block (2 levels) in '
...
Marconi, this error is returned by the server, it is active. Vlw
– Alessandro Sales
Yes I understand, I’m using Nginx with Passenger. You know?
– Alessandro Sales
Look if it can help you. http://answall.com/questions/58179/web-application-could-not-be-started-because
– Marconi
What version of Rails and ruby?
– Alex Takitani
– Alessandro Sales
Is rvm? Rbenv or the machine ruby itself?
– Alex Takitani
Yes it is rvm. A companion of a group suggested that I install safe_yaml and ran. What I found strange was that the app was already running without it. Suddenly came the surprise.
– Alessandro Sales
Face put the code to yours
application.rb
. The problem is in thissafe_yaml
that you installed, check if you gave arequire 'yaml'
for example in yourapplication.rb
.– Bruno Casali
It really seems that the error is in application.rb. Remove this safe_yaml at least to test. Redo the reverse steps.
– Fernando Kosh