I'm getting this error when started rails server.
Internal Server Error
Missing secret_token and secret_key_base for 'vagrant' environment, set these values in config/secrets.yml WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) at localhost:3000
secret_token
secret_key_base
config/secrets.yml
Well that is strange... The only thing I can think of is that you start the server with the rails environment set to vagrant.
vagrant
In which OS are you working on? Can you check if there is an environment variable with the name RAILS_ENV set to vagrant?
RAILS_ENV
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm getting this error when started rails server.
Internal Server Error
Missing
secret_token
andsecret_key_base
for 'vagrant' environment, set these values inconfig/secrets.yml
WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) at localhost:3000
Well that is strange... The only thing I can think of is that you start the server with the rails environment set to
vagrant
.In which OS are you working on? Can you check if there is an environment variable with the name
RAILS_ENV
set tovagrant
?