I need to create a custom environment for an app that is already in production with the standard environment.
In order to minimize downtime and other surprises, I played with custom environments with two new test apps, and I noticed that:
- The first time you add a package to a custom environment, the environment is built, and it can take some time
- If you remove and add the same package, the previously built environment is used, and it takes no time
- The app is not available while new packages are installed in a custom environment (bad)
- You can use a dummy app to configure the environment you need for your production app, so you get downtime on the dummy app, then configure the production app to use the same environment (copy/paste the requirements.txt), and it takes zero downtime (good)
So i learned two things:
- Custom environments are created once per account, not per app
- You can avoid downtime by first creating a custom environment on a dummy app, then use it in the production app
Here is the question: how many custom environments can an account have?
Is there a way to see the list and, maybe, to purge the unused ones?
Or will the unused environments eventually expire and be automatically purged?
