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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discourse
  3. Manual adding of new users

Manual adding of new users

Scheduled Pinned Locked Moved Discourse
6 Posts 3 Posters 493 Views 3 Watching
  • 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.
  • N Offline
    N Offline
    nafets-lesierk
    wrote on last edited by
    #1

    Supposedly one can add new users in Discourse via the terminal as in:

    ./launcher enter app
    rails c
    user = User.create!(username: 'newusername', email: 'user@example.com', password: 'password', active: true)
    

    Is there a "translation" to the Cloudron world?
    Cheers

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Can you add more info an docs links, where this is from and which environment this expects? Have you tried to get this working via the webterminal into your discourse instance?

      https://docs.cloudron.io/apps/discourse/#changing-root-account-email has an example on how to get a rails prompt, which might help here

      1 Reply Last reply
      1
      • N Offline
        N Offline
        nafets-lesierk
        wrote on last edited by
        #3

        This is for admins - but should work for anyone else -> https://meta.discourse.org/t/create-an-admin-account-from-the-console/17274 ; I guess it is equivalent to your link.
        Yes, I'd tried the console but wasn't sure how to do the "create" new user bit ...#
        Thanks and regards!

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Not sure, I don't seem to find creating users in the upstream docs via rails commandline, the "create" admin seems to not create a user, but make an existing user an admin.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nafets-lesierk
            wrote on last edited by
            #5

            OK. Found another meta.discoures post on the subject -> https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669/2 ; might explain the how-to?

            1 Reply Last reply
            1
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #6

              The commands below on the discourse Web terminal should get you the rails console.

              cd /app/code
              gosu cloudron:cloudron bundle exec script/rails console
              
              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search