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. FreeScout
  3. Cloning the app cloned the whole environment

Cloning the app cloned the whole environment

Scheduled Pinned Locked Moved FreeScout
7 Posts 5 Posters 46 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.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote last edited by
    #1

    Expected behavior: Cloning FreeScout should result in a 1:1 copy within an isolated environment.

    Actually, the env file remains identical, which is problematic when the clone resides on the same Cloudron instance as the original.

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    0
    • robiR Offline
      robiR Offline
      robi
      wrote last edited by
      #2

      That is expected. No?

      Conscious tech

      1 Reply Last reply
      2
      • J Offline
        J Offline
        joseph
        Staff
        wrote last edited by
        #3

        I am also wondering what should change in the env file?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ccfu
          wrote last edited by ccfu
          #4

          You expected a 1:1 copy, but not of the env file? What problems has this caused?

          The only thing I would expect to change on clone is the URL and the database credentials. Is that what you are referring to?

          luckowL 1 Reply Last reply
          0
          • C ccfu

            You expected a 1:1 copy, but not of the env file? What problems has this caused?

            The only thing I would expect to change on clone is the URL and the database credentials. Is that what you are referring to?

            luckowL Offline
            luckowL Offline
            luckow
            translator
            wrote last edited by
            #5

            @ccfu Exactly that. We should use the environment variables for the database and domain CLOUDRON_MYSQL_USERNAME= ... instead of "hard-coded" strings. Cloning an app with identical credentials changes the database on the original instead of the clone. It looks like the FreeScout app package isn't using the variables.

            Pronouns: he/him | Primary language: German

            1 Reply Last reply
            1
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote last edited by nebulon
              #6

              So the env file initially will get copied over with the cred from the old app. But once the app is run it will replace them with the new ones in the start.sh script https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L52

              Did you maybe clone it without every running it?

              Ah or maybe some freescout addon is used, which may copy those somehow elsewhere and shouldnt?

              luckowL 1 Reply Last reply
              1
              • nebulonN nebulon

                So the env file initially will get copied over with the cred from the old app. But once the app is run it will replace them with the new ones in the start.sh script https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L52

                Did you maybe clone it without every running it?

                Ah or maybe some freescout addon is used, which may copy those somehow elsewhere and shouldnt?

                luckowL Offline
                luckowL Offline
                luckow
                translator
                wrote last edited by
                #7

                @nebulon I'll look into it.

                Pronouns: he/him | Primary language: German

                1 Reply Last reply
                1

                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