I have problems setting up production environment.
Every time I try to run in production mode, it gives me error:
Unexpected error while processing request: Missing secret_key_base for
‘production’ environment, set this value in config/secrets.yml
In Local also if I do ‘rails s -e production’, it gives me the same
error.
I tried to setup secret_base from the link
first find the secret key by going to the terminal,in your appliaction
and
then typing
1)$ rake secret
this will give you a secret key,then it will give you a big key
2)now copy the secret key and then equal it to SECRET_KEY_BASE=
now type
export SECRET_KEY_BASE
4)now start the rail production server
rails s -e production
lemme know if you find any difficulty
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.