First Admin GUI utility

Now that installation gets more easier with Docker, why don’t we get it even more easier with a GUI utility to create the very first admin right from your browser?

I enjoyed few types and 5 mins installation with Docker over DigitalOcean, but I still have to do some Ruby in cli:

u = User.first
u.admin = true
u.save

We could make an admin creation page available (e.g /add-first-admin) provided there are zero admins in the database, OR even simpler /make-first-user-admin which will be only available and will execute only if there are zero admins in database.

Another possibility is to have “administrator” checkbox when registering the very first user in a standard registration form.

Anyway, there are different possibilities, why not to make such a micro GUI tool to avoid questions like this. Personally I’d be happy to use one.

Btw, this makes setting up SSH to Docker-based installation unnecessary, which complements Update button in administration GUI. This is good especially to decrease the setup time - i.e. time period between you buy your VPS and open your forum in web browser.

Hope it makes sense. Would be happy to read your thoughts about it.

Can’t you just set DISCOURSE_DEVELOPER_EMAILS to be any accounts you want to make an admin; sign up as those accounts, then be an admin?

Is it a part of Docker deployment for Discourse, or part of Discourse environment itself?

It’s a part of discourse.conf, as developer_emails.

Btw:

  1. Can it be set somehow in app.yml of Docker configuration?
  2. Why it says “developers” if it is for administrators?

To 1, it can be set up as an enviroment variable like all other configuration settings. So, that depends on how you have it configured… for example in @sam 's image it’s located here

I’m not quite sure why it’s called developers… but I know that it does set any user with that e-mail address as an admin.