Code deployment
By default a GitHub repository within the wpcomvip GitHub organization is created for every application and a branch is configured to deploy code to each of its environments. By default, application code is developed in an application’s provided wpcomvip GitHub repository and deployed via the Default Deployment method.
The Custom Deployment method can be optionally enabled for WordPress environments. Custom Deployment allows code to be developed in a version control system outside of an application’s wpcomvip GitHub repository. The developed code can then be deployed to a VIP Platform environment with VIP-CLI or a continuous deployment method.
For both deployment methods:
- Logs for an environment’s builds and deploys can be reviewed in the VIP Dashboard.
- Deployment notifications can be configured for an application’s environments.
- A rollback to a previous commit can be performed in the Deployments panel of the VIP Dashboard for an environment.
Node.js code deployments
For Node.js environments, there are several requirements including a specific build step for successful builds and deploys. Code changes will only deploy and replace any existing running code if that code is successfully built. Review the requirements for a Node.js application to run successfully on VIP’s infrastructure carefully. Test all code locally and on a non-production environment before merging to a production branch.
Last updated: June 25, 2024