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