Cloning the app cloned the whole environment
-
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.
-
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?
@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. -
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?
-
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?
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