Changing root account email in fresh Discourse install



  • 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 root@cloudron.local 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 console in the shell. Like below:

    5c71c01d-4b8e-449d-9708-c46e356a4a04-image.png


Log in to reply