I just installed Discourse on DigitalOcean using the one-click apps and went through the setup over SSH. Everything checks out but my first user account that I created on the web site (using the same email address provided over SSH - I checked 3 times) was not an admin account. In other words, I have no access to the admin panel. Any tips?
SSH into the server
cd /var/discourse ./launcher enter app u = User.find_by_email('your_email'); u.admin = true; u.save
Thanks - it works up to this point, which line gives:
bash: syntax error near unexpected token `(’
You need to start the Rails console after entering the container. This is it:
cd /var/discourse ./launcher enter app rails c u = User.find_by_email('your_email'); u.admin = true; u.save
oops, I forgot about the rails console.
Thanks! I figure this is a bug with Discourse since I started over from scratch and entered my email in the setup with all lowercase and it worked. Will open a new thread for that.
No known bugs with this that I’ve seen. Just make sure the email matches what you entered at bootstrap time. It is not case sensitive.
I think it is; I repeated the process exactly and got it to work with a lowercase email. Here’s a report.
Discourse is great, by the way! Thanks for making it.