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
-
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.
@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 buildand thencloudron updateafter you change the Dockerfile? -
@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 buildand thencloudron updateafter you change the Dockerfile?@girish Oh so I made a pretty distinct change to the UI of my app between the 2 versions but didnt notice the change as if it still had the old frontend code. I'll try it again incase I goofed something up real bad
-
No luck

I still get the old UI
-
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.
@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 execdo you see the latest code in/app/code?If not, are you sure the
cloudron buildandcloudron updateis succeeding (maybe paste the output here)? -
No luck

I still get the old UI
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login