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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -