Before diving into provider-specific configurations, ensure you have completed the initial setup steps outlined in our quick start guide.If you’re looking for an easier way to deploy Nightwatch, consider using Laravel Cloud or Laravel Forge, which offer streamlined setup processes.
The instructions below are tailored for Ubuntu systems. If you’re running a different Linux distribution, you may need to adjust the commands accordingly.After installing the Nightwatch package via Composer, add your environment variables to your application’s .env file:
For production deployments, we recommend running the Nightwatch agent as a systemd service since systemd is installed by default on every Ubuntu system. This ensures the agent starts automatically on boot and restarts if it ever crashes.First, create a new service file: