Ruby on Rails
Wednesday, December 24, 2014
first find the secret key by going to the terminal,in your appliaction and then typing
1)$ rake secret
-- 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=
3) now type
export SECRET_KEY_BASE
4)now start the rail production server
rails s -e production
lemme know if you find any difficulty
On Wednesday, December 24, 2014 11:13:07 AM UTC+5:30, Avi wrote:
On Wednesday, December 24, 2014 11:13:07 AM UTC+5:30, Avi wrote:
Hello All,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 - https://gist.github.com/pablosalgadom/ .4d75f30517edc6230a67 But its still not working.Can any one help me on this?Thanks,Avi
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3cf26d68-1c5d-42ab-af55-3aeed95015ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment