ruby on rails - Creating an admin user in production on Spree -


i deployed spree app server. locally can login admin , change things, on server password , account not work. when go /admin message authorization failure.

i did run bundle exec rake spree_auth:admin:create , bundle exec rake db:migrate not work. furthermore, can login e-mailaddress , password got hosting company, can not go admin page.

does know how create admin user?

deploying spree doesn't (and shouldn't) copy database development production.

so development admin user doesn't exist on production database.

ssh production server , try:

rake spree_auth:admin:create 

update:

do in /data/spree/current


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -