Changing root account email in fresh Discourse install
CaptainCalliope last edited by girish
Hiya! I just installed Discourse, and am trying to change my root user's email and password. However I first need to change it from firstname.lastname@example.org to a mailbox I actually can access.
I found these instructions in the Cloudron docs but when I follow the "Changing root account email" directions, the second command
irb(main):001:0> u = User.find_by_username("root")
gives me this error
bash: syntax error near unexpected token `main'
Am I doing something wrong? Are the directions wrong? Is there something I might have done in the cloudron dashboard that changes the command I need to use? Halp!
I tried this now in a fresh install and it seems to work.
Please note that you are supposed to run the commands in the app's web terminal (i.e Click the gear button in the cloudron dashboard app -> Console -> Terminal). And then you must put in
sudo -E -u cloudron bundle exec script/rails consolein the shell. Like below: