Forum Discussion
jontwy
Apr 29, 2021Copper Contributor
Loading config.js into web app container
Very much new to azure. Running containers in a swarm on our servers currently and looking to move to azure. We have a legacy app which we have containerised and to make it as useable as possible, we...
- May 03, 2021I'm guessing your file is environment specific, so you have different ones for dev, test, etc.
The typical path would be to convert these to environment variables, and then validate them through kudu/scm. https://<app>.scm.azurewebsites.net/Env Changing environment variables doesn't trigger a container restart, like many update or redeploy operations will.
You have the option to enable persistent storage (/home) and put shared files there, but this might require app changes.
Since you have a container, you can add the file to the image, or as part of a deployment pipeline.
Lastly, you can use the kudu (/scm) endpoint to upload files, but I would stay away from this.
cberon
May 03, 2021Brass Contributor
I'm guessing your file is environment specific, so you have different ones for dev, test, etc.
The typical path would be to convert these to environment variables, and then validate them through kudu/scm. https://<app>.scm.azurewebsites.net/Env Changing environment variables doesn't trigger a container restart, like many update or redeploy operations will.
You have the option to enable persistent storage (/home) and put shared files there, but this might require app changes.
Since you have a container, you can add the file to the image, or as part of a deployment pipeline.
Lastly, you can use the kudu (/scm) endpoint to upload files, but I would stay away from this.
The typical path would be to convert these to environment variables, and then validate them through kudu/scm. https://<app>.scm.azurewebsites.net/Env Changing environment variables doesn't trigger a container restart, like many update or redeploy operations will.
You have the option to enable persistent storage (/home) and put shared files there, but this might require app changes.
Since you have a container, you can add the file to the image, or as part of a deployment pipeline.
Lastly, you can use the kudu (/scm) endpoint to upload files, but I would stay away from this.