Deploy vs redeploy
Deploy vs redeploy
When deploying your application, you'll see two buttons in the deployment modal: Deploy and Redeploy. Understanding when to use each option helps you deploy faster and more efficiently.
Deploy
The Deploy button triggers a full deployment that:
- Clones your repository from the configured branch
- Builds a new Docker image with your latest code and dependencies
- Pushes the image to the container registry
- Deploys the new image to your application
Use Deploy when you have code changes in your repository that need to be included in the deployment.
Redeploy
The Redeploy button triggers a fast deployment that:
- Skips the build phase entirely
- Reuses the existing Docker image from your last successful deployment
- Applies all pending configuration changes including environment variables, domains, resources, and other settings
- Restarts your application with the updated configuration
Redeploy is significantly faster because it doesn't need to clone your repository or build a new image, while still applying all your configuration changes.
When to use deploy
Use Deploy when you need to include code changes:
- Code changes - Any modifications to your repository
- Dependency updates - New packages in composer.json or package.json
- Build command changes - Updated build or init commands
- PHP or Node.js version changes - These require rebuilding the image
When to use redeploy
Use Redeploy when you've only made configuration changes that don't require rebuilding your image:
- Environment variables - Adding, updating, or removing secrets
- Custom domains - Adding or removing domains
- Resource allocation - Changing CPU or memory settings
- Scheduler settings - Enabling or disabling the cron scheduler
These changes are applied when your application restarts, without needing new code.