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. Discourse - problem installing plugins

Discourse - problem installing plugins

Scheduled Pinned Locked Moved Solved Discourse
5 Posts 3 Posters 1.1k 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.
    • J Offline
      J Offline
      jimmmmy
      wrote on last edited by
      #1

      Hi cloudron community,

      It may sound like a supernoob question. But I still have no clue about the answer.
      I have a discourse installed here
      When I try to install a plugin and run the following lines in the app's terminal:

      cd /app/code/plugins
      git clone <plugin-repo>
      cd /app/code
      bundle exec rake plugin:install_gems['REPLACE_WITH_PLUGINS_NAME'] 
      

      Everything works well.
      But when I try to run the last line of command

      rm -rf /run/discourse/public/assets/*
      

      the site goes down and the app doesn't work anymore.
      Why ? And how should I do ?

      jdaviescoatesJ 1 Reply Last reply
      0
      • J jimmmmy

        Hi cloudron community,

        It may sound like a supernoob question. But I still have no clue about the answer.
        I have a discourse installed here
        When I try to install a plugin and run the following lines in the app's terminal:

        cd /app/code/plugins
        git clone <plugin-repo>
        cd /app/code
        bundle exec rake plugin:install_gems['REPLACE_WITH_PLUGINS_NAME'] 
        

        Everything works well.
        But when I try to run the last line of command

        rm -rf /run/discourse/public/assets/*
        

        the site goes down and the app doesn't work anymore.
        Why ? And how should I do ?

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #2

        @jimmmmy does the site come back up after you restart the app? Sounds like that is the last step.

        Restart the application for the assets to get re-built.

        https://docs.cloudron.io/apps/discourse/

        I use Cloudron with Gandi & Hetzner

        BrutalBirdieB J 2 Replies Last reply
        1
        • jdaviescoatesJ jdaviescoates

          @jimmmmy does the site come back up after you restart the app? Sounds like that is the last step.

          Restart the application for the assets to get re-built.

          https://docs.cloudron.io/apps/discourse/

          BrutalBirdieB Online
          BrutalBirdieB Online
          BrutalBirdie
          Partner
          wrote on last edited by
          #3

          Exactly, did you read this line above?
          https://docs.cloudron.io/apps/discourse/

          # the line below will force assets to be rebuilt on next application restart
          rm -rf /run/discourse/public/assets/*
          

          Like my work? Consider donating a drink. Cheers!

          J 1 Reply Last reply
          1
          • jdaviescoatesJ jdaviescoates

            @jimmmmy does the site come back up after you restart the app? Sounds like that is the last step.

            Restart the application for the assets to get re-built.

            https://docs.cloudron.io/apps/discourse/

            J Offline
            J Offline
            jimmmmy
            wrote on last edited by
            #4

            @jdaviescoates thank you for your answer. It seems after further inquiries that it was due to a cache problem. I went over it again and all went well.

            1 Reply Last reply
            3
            • BrutalBirdieB BrutalBirdie

              Exactly, did you read this line above?
              https://docs.cloudron.io/apps/discourse/

              # the line below will force assets to be rebuilt on next application restart
              rm -rf /run/discourse/public/assets/*
              
              J Offline
              J Offline
              jimmmmy
              wrote on last edited by
              #5

              @brutalbirdie yes, thanks 😊

              1 Reply Last reply
              2
              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