Hi, it's me again! I don't understand how to creat...
# support
m
Hi, it's me again! I don't understand how to create an admin in production. I deployed my site on Digital Ocean. Anyone can guide me through that please ?
1
n
hey Marie! you can create an admin through the console
Copy code
role_id = Spree::Role.find_by_name('admin').id
Spree::RoleUser.create!(role_id: role_id, user_id: user_id)
I think there is a simpler way provided by solidus, but this should work too
w
Yeah, you can also run
bin/rake spree_auth:admin:create
(with solidus_auth_devise)
m
Thank you very much!