Install Nightwatch package
composer require laravel/nightwatch
on your local machine to update your composer.json and composer.lock files before deploying.Add your Nightwatch token
NIGHTWATCH_TOKEN
to your .env
file:Configure the agent as a background process
Select the App cluster
Select “New Background Process”
Add a custom worker that runs the `nightwatch:agent` command
Monitor the agent
nightwatch:status
command will exit with a non-zero status code if there is an error. This command will ensure the agent is able to accept connections and send data to Nightwatch..env
file as shown below to enable logging to both services: