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
  • Brite
  • 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 - Status | 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 2.6k 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

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