The simple way
Make sure either:
- The env var
DISCOURSE_DEVELOPER_EMAILS is set to a comma delimited list of admin emails.
- If using
developer_emails is set to a comma delimited list of admin emails.
DISCOURSE_DEVELOPER_EMAILSemail@example.com,firstname.lastname@example.org rails s
Will automatically set the accounts of
email@example.com to admins after they create accounts.
The hard way
You can also use the Rails console to set yourself as an administrator:
./launcher enter my_app
# rake admin:create
Ensuring account is active!
Account created successfully with username myemail
Do you want to grant Admin privileges to this account? (Y/n) Y
Your account now has Admin privileges!