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. App Packaging & Development
  3. Updating a node app

Updating a node app

Scheduled Pinned Locked Moved App Packaging & Development
8 Posts 4 Posters 1.2k Views 5 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    girishG 2 Replies Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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
      0
      • ? A Former User

        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.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @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
        0
        • girishG girish

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

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @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
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            No luck 😞

            I still get the old UI

            mehdiM 1 Reply Last reply
            0
            • ? A Former User

              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.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @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
              1
              • ? A Former User

                No luck 😞

                I still get the old UI

                mehdiM Offline
                mehdiM Offline
                mehdi
                App Dev
                wrote on last edited by
                #7

                @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

                LonkleL 1 Reply Last reply
                2
                • mehdiM mehdi

                  @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

                  LonkleL Offline
                  LonkleL Offline
                  Lonkle
                  wrote on last edited by
                  #8

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