Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    SOLVED Changing root account email in fresh Discourse install

    Discourse
    discourse
    2
    2
    34
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CaptainCalliope
      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 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! 🙀

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post