When changes require redeployment

2 min read Updated 1 month ago

When changes require redeployment

Your application needs to be redeployed whenever certain changes are made. Here's a complete list of what requires a new deployment:

1. Environment variables

  • Adding new secrets - When you add environment variables to your application
  • Updating secret values - When you change the value of existing environment variables
  • Deleting secrets - When you remove environment variables from your application

2. Custom domains

  • Adding domains - When you attach a new custom domain to your application
  • Removing domains - When you detach a custom domain from your application

3. Build configuration

  • Build commands - When you modify commands that run during image construction
  • Init commands - When you change commands that run before starting your application

4. PHP configuration

  • PHP version - When you change the PHP version (8.4, 8.3, 8.2, 8.1)
  • PHP extensions - When you add or remove PHP extensions
  • PHP settings - When you modify php.ini configuration values

5. Application services

  • Adding services - When you add databases, caches, or other services

  • Service types include:

    • MySQL database
    • PostgreSQL database
    • MongoDB database
    • Redis cache
    • Valkey cache
    • RabbitMQ message queue
    • MinIO object storage
    • SFTP server
    • Background workers

6. Resource configuration

  • CPU allocation - When you change CPU request values (e.g., 500m, 1)
  • Memory allocation - When you change memory request values (e.g., 512Mi, 1Gi)
  • Scheduler - When you enable or disable the cron scheduler
  • Node.js version - When you change or set the Node.js version

7. Application settings

  • Application name - When you rename your application