|
| 1 | +--- |
| 2 | +id: netlify-deployments |
| 3 | +title: Deployments |
| 4 | +description: Full guide for triggering builds, tracking deployment progress, and viewing logs for your Netlify sites from Directus. |
| 5 | +technologies: |
| 6 | + - netlify |
| 7 | +--- |
| 8 | + |
| 9 | +After linking your Netlify account and configuring your sites, manage all deployment activities directly from Directus. |
| 10 | + |
| 11 | +Trigger deployments after publishing content updates that impact your frontend. |
| 12 | + |
| 13 | +**[← Back to Netlify Integration](/guides/integrations/netlify)** |
| 14 | + |
| 15 | +## Triggering Deployments |
| 16 | + |
| 17 | +Start a new deployment for any connected Netlify site: |
| 18 | + |
| 19 | +1. Navigate to the **Deployment** module |
| 20 | +2. Click on the **Netlify** provider |
| 21 | +3. Select the site you want to deploy |
| 22 | +4. Click the **Deploy** button in the top right |
| 23 | +5. Netlify will begin building and deploying your site |
| 24 | + |
| 25 | +Each deployment is logged in Directus with its deployment metadata. |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +## Monitoring Deployment Status |
| 30 | + |
| 31 | +::callout{icon="material-symbols:info-outline"} |
| 32 | +**Only deployments triggered from Directus appear here**. Deployments initiated directly in Netlify will not be displayed. |
| 33 | +:: |
| 34 | + |
| 35 | +Track your deployments in the deployment list view. The list displays: |
| 36 | + |
| 37 | +- **Deploy ID**: Netlify identifier for each build |
| 38 | +- **Status**: Current deployment state |
| 39 | + - `BUILDING`: Build is in progress |
| 40 | + - `READY`: Site is successfully built, deployed, and live |
| 41 | + - `CANCELED`: Deployment was stopped before completion |
| 42 | + - `ERROR`: Build or deploy phase failed |
| 43 | +- **Context**: Deployment environment (production, branch deploy, etc.) |
| 44 | +- **Started**: When the build began |
| 45 | +- **Duration**: Build time |
| 46 | +- **Author**: Who initiated the deployment |
| 47 | + |
| 48 | +## Viewing Build Logs |
| 49 | + |
| 50 | +Access detailed build logs for any deployment: |
| 51 | + |
| 52 | +1. Click any deployment from the site list |
| 53 | +2. View the full build output, including: |
| 54 | + - Build steps and timing |
| 55 | + - Plugin execution details |
| 56 | + - Asset optimization and caching |
| 57 | + - Error messages (if applicable) |
| 58 | +3. Use **search** to locate specific log entries |
| 59 | +4. Filter by **log level** (All, Stdout, Stderr) to narrow results |
| 60 | + |
| 61 | +Build logs are essential for diagnosing deployment issues and understanding your build pipeline. |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +## Exporting Logs |
| 66 | + |
| 67 | +Download deployment logs for records or debugging: |
| 68 | + |
| 69 | +1. Open the deployment details view |
| 70 | +2. Click the **Download** icon in the top right |
| 71 | +3. Logs are saved as a text file with timestamps |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +## Visiting Deployed Sites |
| 76 | + |
| 77 | +Access your live deployments quickly: |
| 78 | + |
| 79 | +1. From the deployment details view, click the **Visit** button |
| 80 | +2. Your deployed site opens in a new tab |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +## Best Practices |
| 85 | + |
| 86 | +**Deployment Workflow** |
| 87 | +- Deploy after publishing content changes that affect your frontend |
| 88 | +- Monitor initial deployments after setup to confirm builds succeed |
| 89 | +- Retain build logs for failed deployments to aid troubleshooting |
| 90 | + |
| 91 | +**Performance Tips** |
| 92 | +- Build durations in the deployment list help track performance trends |
| 93 | +- Netlify's build cache can accelerate subsequent builds |
| 94 | + |
| 95 | +**Troubleshooting** |
| 96 | +- For failed deployments, review build logs for error details |
| 97 | +- Confirm your Netlify site configuration and build settings |
| 98 | +- Verify your Personal Access Token has required permissions |
| 99 | + |
| 100 | +## Next Steps |
| 101 | + |
| 102 | +- **[← Back to Integration](/guides/integrations/netlify)** Return to the integration overview |
0 commit comments