Deployments

Deploy Proces

Begrijp hoe deployments werken en best practices voor het shippen van code.

3 min leestijd

TurtleApps makes deploying code safe and simple. This guide explains the deployment process and best practices for shipping code confidently.

Deployment Overview

Deployment pipeline visualization

[Screenshot placeholder]

The deployment process follows these stages:

  1. Code is reviewed and approved
  2. Build process runs (compile, bundle, optimize)
  3. Tests execute (if configured)
  4. Code deploys to target environment
  5. Health checks verify deployment

Initiating a Deployment

1

Approve Changes

After reviewing the preview, approve the changes. If approval workflows are enabled, all required approvers must sign off.

2

Click Deploy

Click the "Deploy" button on the ticket or use the command palette (Ctrl/Cmd + K).

3

Select Environment

Choose your target environment (typically production). You can also deploy to staging.

4

Confirm

Review the deployment summary and confirm. The deployment begins immediately.

What Happens During Deployment

Build Phase

  • Dependencies are installed
  • Code is compiled/transpiled
  • Assets are optimized
  • Build artifacts are created

Test Phase

  • Unit tests run (if configured)
  • Integration tests run (if configured)
  • Build fails if tests fail

Deploy Phase

  • Artifacts are uploaded to hosting
  • Environment variables are applied
  • CDN cache is invalidated
  • DNS updates (if needed)

Verify Phase

  • Health checks run
  • Basic smoke tests
  • Deployment marked as complete or failed

Zero-Downtime Deployments

TurtleApps uses rolling deployments by default. Your application stays available throughout the deployment process.

Deployment Logs

Real-time logs show exactly what's happening during deployment. Access logs from the ticket view or the Deployments page.

Deployment Failures

If a deployment fails:

  1. Check the deployment logs for error details
  2. Common issues: build errors, test failures, environment issues
  3. Fix the issue and redeploy
  4. Use rollback if production is affected

⚠️Failed Deployments

If a deployment fails during the deploy phase (after build succeeded), your previous version remains live. No action is needed unless you see the failure.

Deployment Best Practices

  • Always test in preview before deploying
  • Deploy during low-traffic periods for critical changes
  • Keep deployments small and frequent
  • Monitor metrics after deployment
  • Have a rollback plan ready

Was dit artikel nuttig?