infra/burst/systemd/subplz-burst.service (547 bytes)
1 [Unit] 2 Description=subplz-web burst controller: start burst workers on the cheapest cloud 3 After=network-online.target 4 Wants=network-online.target 5 6 [Service] 7 Type=oneshot 8 User=root 9 WorkingDirectory=/opt/subplz-web 10 # The app settings (SUBPLZ_WEB_REDIS_URL, SUBPLZ_WEB_S3_BUCKET, the database), 11 # the storage keys, and the cloud keys for Terraform (see infra/burst/README.md). 12 EnvironmentFile=/opt/subplz-web/.env 13 EnvironmentFile=/etc/subplz-storage.env 14 EnvironmentFile=/etc/subplz-burst.env 15 ExecStart=/opt/subplz-web/.venv/bin/python -m tools.burst