Reset password at command line

Is there a way to reset the password to a known state using the command line interface. An added complication is that the email functionality is not working which prevents a straight password reset via email.

What did you do to break your email?

You can check Troubleshooting Outgoing Email and Troubleshoot email on a new Discourse install.

To reset the password

cd /var/discourse 
./launcher enter app
rake admin:create
3 Likes

Thanks. I never used Ruby/Rails before and just discovered the power of Rake -T and Rake -W :smiley: Thanks!

1 Like