How to access the admin section of Spree in production?

bluebit picture bluebit · Apr 28, 2012 · Viewed 10.1k times · Source

I have followed the Spree instructions for setting up, and I got it working in development mode. I deployed with Capistrano to rackspace to a production server, but the same default login ("[email protected]"/"spree123") does not work. I created a user in the web interface, but of course it would not have admin priveleges.

There is nothing in the guide that takes this into account - how can I create an admin user in production when there are no users at all initially? Maybe I deployed incorrectly? I am using a very standard deploy.rb, must there be some spree-specific code for setting this up?

Answer

geermc4 picture geermc4 · Mar 2, 2013

You can run rake spree_auth:admin:create if your using spree_auth_devise