deploy and post_deploy hooks can access all runtime environment variables.
Use this to vary those hooks based on the environment.
Check the PLATFORM_ENVIRONMENT_TYPE variable to see if it’s in a production environment:
.upsun/config.yaml
Change what runs in your hooks depending on the current environment type.
deploy and post_deploy hooks can access all runtime environment variables.
Use this to vary those hooks based on the environment.
Check the PLATFORM_ENVIRONMENT_TYPE variable to see if it’s in a production environment: