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

    Solved Replace custom build with version from appstore?

    Support
    cli
    3
    5
    231
    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.
    • fbartels
      fbartels App Dev last edited by girish

      Hi,

      with the cloudron cli it is possible to "update" an app that was originally installed from the appstore with a locally built version (by doing cloudron install --app 778fa79a-7f96-418e-8810-b16c1a8a7ea2, where 778.. is the id of the current app).
      But how about going back to the official version? The update action does not seem to support specifying an appstore id.

      One a side note depending on the combination of parameters I get different error messages from the cloudron cli.

      $ cloudron install --appstore-id com.github.xxx --app xxx
      Use "cloudron update" to update an app
      $ cloudron install --appstore-id com.github.xxx
      Location: xxx
      Failed to install app: 409 message: Domain 'xxx.yyy.eu' is in use
      
      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Since we separated the install from the update, I don't think that is possible anymore. Before there was quite a bit of flexibility but also magic when it was a new install or an update.

        This also is why the error messages are like this. Previously adding --app would essentially mean updating or more like overwrite that app with this appstoreId or local manifest/build. The update part is now handled by the update subcommand and the install is always a new instance.

        I guess what is missing here is to accept either the appstoreId or the image (which defaults to check for the current folder having a manifest and a corresponding build) for the update subcommand.

        fbartels 1 Reply Last reply Reply Quote 1
        • fbartels
          fbartels App Dev @nebulon last edited by

          @nebulon said in Replace custom build with version from appstore?:

          I guess what is missing here is to accept either the appstoreId or the image [..] for the update subcommand.

          yes, that would be nice

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

            @fbartels Ah, I faced this exact issue the other day (your use case is different, but I wanted a similar CLI option) and made a task for it a week ago - https://git.cloudron.io/cloudron/cloudron-cli/-/issues/56 . Will get to this 🙂

            1 Reply Last reply Reply Quote 3
            • girish
              girish Staff last edited by

              I have added cloudron update --appstore-id {id} for the next release.

              1 Reply Last reply Reply Quote 1
              • Referenced by  fbartels fbartels 
              • First post
                Last post
              Powered by NodeBB