Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Updating a node app

    App Packaging & Development
    4
    8
    210
    Loading More Posts
    • 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.
    • ?
      A Former User last edited by

      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.

      girish 2 Replies Last reply Reply Quote 0
      • ?
        A Former User last edited by

        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
        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff @Guest last edited by

          @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 then cloudron update after you change the Dockerfile?

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @girish last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              No luck 😞

              I still get the old UI

              mehdi 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @Guest last edited by

                @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 and cloudron update is succeeding (maybe paste the output here)?

                1 Reply Last reply Reply Quote 1
                • mehdi
                  mehdi App Dev @Guest last edited by

                  @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

                  Lonkle 1 Reply Last reply Reply Quote 2
                  • Lonkle
                    Lonkle @mehdi last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB