With Platform.sh, every Git branch maps to a preview environment which is an exact and isolated copy of your live application—including all data, services, and files. They are usually created to build new features, apply security patches, or upgrade dependencies in full isolation and before deploying to production. Although there is a catch—preview environments are often left idle waiting for someone to review and approve any changes made. And while they are idle, they continue to use CPU and RAM which both consume electricity and emit CO2. That’s why we wanted to put you back in control of your resource usage and help you reduce your carbon footprint, as well as our own. In the coming weeks you will be able to pause your idle preview environments to limit that resource consumption instantly. We’re also going to automate this process for preview environments which have been idle for 14 days or more without being redeployed to minimize resource usage across the thousands of projects we host. Dramatically reducing the number of machines required to run our infrastructure across all of our regions—hooray!Documentation Index
Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
Use this file to discover all available pages before exploring further.
Understanding the 14-day pause for preview environments
You might be curious to know why we chose 14 days as our timeframe for a preview environment to be paused automatically. It’s mostly due to the very positive feedback we received from the paused crons we released last year with the same timeframe. Our assumption is that most of the time, preview environments will automatically resume via a deployment, and that only a few will require manual reactivation. Of course, we will monitor that assumption closely and make any changes needed to this process accordingly following feedback.Managing preview environments: How pausing works
All preview environments (development or staging) can be manually and automatically paused, while production environments can only be manually paused. When an environment is paused, all routes will redirect to a static web page explaining that the environment is paused and a button to resume the environment.
How to pause an environment
To pause an environment, follow these steps:- Using the CLI
- In the Console
How to resume an environment
When all of your changes have been approved and you’re ready to redeploy once again there are a couple of ways in which you can resume a paused environment:- Make a change that triggers a deployment, such as: push the code or trigger a redeployment.
- Trigger the resume action from the Console or the CLI.