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. Support
  3. Modifying Files in /app/code

Modifying Files in /app/code

Scheduled Pinned Locked Moved Solved Support
clidebugrecovery
6 Posts 4 Posters 1.4k Views 4 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
    JLX89
    wrote on last edited by girish
    #1

    Hello,
    Is there a way to modify files located in /app/code for a deployed app? For example, I'm looking at migrating Xenforo over to Discourse but need to modify the importer file in /app/code/scripts in order to make this happen.

    Thank you!

    robiR 1 Reply Last reply
    1
    • ChristopherMagC Offline
      ChristopherMagC Offline
      ChristopherMag
      wrote on last edited by
      #6

      For anyone else coming later, if you need to modify these files to test out for instance a code fix you would use the CLI tool to run cloudron debug --app app.domain.com, open a web terminal to the app, edit whatever files you need to in /app/code, and then run /app/pkg/start.sh from within that web terminal to manually start the app and test your change.

      You can exit debug mode, which will delete your changes, by going to the app's settings in cloudron, Repair, and clicking the Disable Recovery Mode button.

      1 Reply Last reply
      3
      • J JLX89

        Hello,
        Is there a way to modify files located in /app/code for a deployed app? For example, I'm looking at migrating Xenforo over to Discourse but need to modify the importer file in /app/code/scripts in order to make this happen.

        Thank you!

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        @jlx89 yes, if you do it in app>config>repair>recovery mode.

        The changes though are temporary, as with every restart/upgrade it reverts.

        Conscious tech

        J 1 Reply Last reply
        1
        • robiR robi

          @jlx89 yes, if you do it in app>config>repair>recovery mode.

          The changes though are temporary, as with every restart/upgrade it reverts.

          J Offline
          J Offline
          JLX89
          wrote on last edited by
          #3

          @robi Thank you so much, that should work out since it's just temporary for the upgrade.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            I think for modifying /app/code, you might have to use the CLI tool since the recovery mode in the UI currently puts the apps in "paused" mode but the file system is still readonly. Instead, install the CLI tool and thencloudron debug --app app.domain.com.

            J 1 Reply Last reply
            1
            • girishG girish

              I think for modifying /app/code, you might have to use the CLI tool since the recovery mode in the UI currently puts the apps in "paused" mode but the file system is still readonly. Instead, install the CLI tool and thencloudron debug --app app.domain.com.

              J Offline
              J Offline
              JLX89
              wrote on last edited by
              #5

              @girish Thank you! I will give that a shot.

              1 Reply Last reply
              0
              • ChristopherMagC Offline
                ChristopherMagC Offline
                ChristopherMag
                wrote on last edited by
                #6

                For anyone else coming later, if you need to modify these files to test out for instance a code fix you would use the CLI tool to run cloudron debug --app app.domain.com, open a web terminal to the app, edit whatever files you need to in /app/code, and then run /app/pkg/start.sh from within that web terminal to manually start the app and test your change.

                You can exit debug mode, which will delete your changes, by going to the app's settings in cloudron, Repair, and clicking the Disable Recovery Mode button.

                1 Reply Last reply
                3
                • girishG girish marked this topic as a question on
                • girishG girish has marked this topic as solved on
                • R robw referenced this topic on
                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