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


    Cloudron Forum

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

    Using ./launcher from Terminal

    Discourse
    3
    5
    109
    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.
    • brianb
      brianb last edited by

      I want to run the import category file as shown on this discourse doc page https://meta.discourse.org/t/administrative-bulk-operations/118349#heading--8

      first thing is open a terminal and run

      cd /var/discourse
      ./launcher enter app
      

      then from the example

      rake import:file["category-export-2019-05-16-052430.json"]
      

      I've tried to figure it out but I'm not a great linux admin nor am I familiar at all with rails.

      Is it possible to use./launcher enter app
      command from the terminal launched by cloudron for discourse app?

      robi girish 2 Replies Last reply Reply Quote 0
      • robi
        robi @brianb last edited by

        @briankb-0 yes, you can use the app file manager to upload any files you need and the terminal to run the cli commands.

        Just check that you're in the right directories or use fill file paths.

        Life of Advanced Technology

        brianb 1 Reply Last reply Reply Quote 1
        • brianb
          brianb @robi last edited by

          @robi so what folder do I need to be in to run ./launcher enter app?

          This is from the Terminal of an instance of Discourse installed via Cloudron dashboard.

          robi 1 Reply Last reply Reply Quote 0
          • robi
            robi @brianb last edited by

            @briankb-0 you can use ls and cd look around, or use the file manager to look around and find the launcher file that is executable then note it's directory.

            Once you launch the terminal it will drop you into /app/code which you can validate with pwd

            If you paste some screenshots, we can guide you from there.

            Life of Advanced Technology

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

              @briankb-0 the launcher script only works with Discourse's own packaging stuff i.e if you use https://github.com/discourse/discourse_docker . It does not work in Cloudron, we have our own packaging at git.cloudron.io/cloudron/discourse-app

              Generally, you should be able to do everything using rake or bundle exec since Discourse is just a rails app. See https://docs.cloudron.io/apps/discourse for some examples.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB