Deploying Services
Only for services on bare GCP compute instances
These deployment steps currently function only for services running as a systemd service on bar GCP compute instances. Deploying services on GCP Cloud Run functions differently.
For deploying a service, you first have to use neph to set the appropriate env vars. You then have to install the service on your machine (build and move to correct dir), to then copy you newly built bin to the related remote machine. Just execute the following steps:
- Set env vars:
. <(uv run neph config dump --output shell --env <env>) - Install with
make:make -C dir/to/service install - Set up remote machine correctly:
uv run neph ansible --env <env> --playbook <playbook>
Gateway and streamer live on same machine and are deployed together!
The gateway and the streamer live on the same machine. The playbook ubuntu-gateway.yml deploys both services together, and the streamer must not be restarted when jobs are running.
Tip
If you want to execute only a selective subset of steps of the deployment playbook, go to the playbook and comment out whatever should not be executed.