Early Access Deployment tracking requires version
1.26.0 or later of the Nightwatch package and is currently limited to early access users. Contact us to enable access for your organization.Resolve issues on next deploy
Setting up deployment tracking unlocks the Resolve on next deploy workflow, which is one of the most effective ways to manage issues in Nightwatch. Instead of resolving an issue manually, you can mark it to resolve automatically when the next deployment is detected. The issue stays open while your fix is waiting to reach your live environment and then automatically closes once the new release ships.Mark an issue for resolution
The issue resolves when the next deployment is detected. If a deployment is already in progress, the issue resolves on the subsequent deployment.
Automatic Setup
If you deploy with Laravel Cloud, Nightwatch handles deployment tracking automatically. This integration sends deployment details such as the release reference, name, and URL without extra configuration.Manual Setup
If you are not using a platform with built-in Nightwatch integration, you can set up deployment tracking manually. Start by setting theNIGHTWATCH_DEPLOY environment variable as part of your deployment process. Once this value is present, Nightwatch detects new deployments from incoming application activity.
Common values include:
- A git commit SHA:
NIGHTWATCH_DEPLOY=$(git rev-parse HEAD) - A version tag:
NIGHTWATCH_DEPLOY=v1.2.3 - A release timestamp:
NIGHTWATCH_DEPLOY=$(date +%Y%m%d%H%M%S)
nightwatch:deploy Artisan command at the appropriate point in your deployment pipeline.
| Argument/Option | Required | Description |
|---|---|---|
deploy | No | The deployment reference. Defaults to NIGHTWATCH_DEPLOY. |
--ref | No | A commit reference, such as 1a50baf or v1.0. |
--name | No | A human-friendly deployment name, such as v1.2.3. |
--url | No | A URL to related deployment details, such as a release page or CI run. |
--timestamp | No | When the deployment occurred. Defaults to now(). |
Examples
Use the configuredNIGHTWATCH_DEPLOY value: