Updating a node app
-
I'm packaging an app I built here: https://git.cloudron.io/AtriLahiji/eleutheriapay-app
I tested installing 0.1.9 of my app and then building & updating to 0.2.0 but it didn't seem to change. Is there something I'm missing? I'm not incredibly experienced with Docker so I feel like theres something I'm messing up in the Dockerfile but I honestly cant see why it wouldn't just replace the contents of the /app/code directory.
-
For context, the app is structured like so: https://git.lahijiapps.dev/atrilahiji/personal-site
What I am aiming for:
- Frontend and Backend folders to be updated
- The logo and favicon in the frontend/dist folders after installation should be preserved somehow
- the .env file in /app/code should be preserved if it already exists
-
@atrilahiji said in Updating a node app:
I tested installing 0.1.9 of my app and then building & updating to 0.2.0 but it didn't seem to change
What didn't change? Did you do
cloudron build
and thencloudron update
after you change the Dockerfile? -
No luck
I still get the old UI
-
@atrilahiji said in Updating a node app:
but I honestly cant see why it wouldn't just replace the contents of the /app/code directory
Let's start with this. When you do
cloudron exec
do you see the latest code in/app/code
?If not, are you sure the
cloudron build
andcloudron update
is succeeding (maybe paste the output here)? -
@atrilahiji Also, some browsers are a bit ... aggressive with their caching policies. You may want to force-refresh (ctrl/cmd + shift + R in most browsers), maybe even a few times, before anything else, just to check it wasn't just cache
-
@mehdi said in Updating a node app:
@atrilahiji Also, some browsers are a bit ... aggressive with their caching policies. You may want to force-refresh (ctrl/cmd + shift + R in most browsers), maybe even a few times, before anything else, just to check it wasn't just cache
This has been my experience as well.