1.4 KiB
1.4 KiB
systemd Units
This directory contains recommended systemd unit templates for the current
split-service production topology.
Recommended Topology
agent_serviceon127.0.0.1:8000trading_serviceon127.0.0.1:8001news_serviceon127.0.0.1:8002runtime_serviceon127.0.0.1:8003nginxservesfrontend/distand proxies/api/*+/wsruntime_servicespawns the run-scoped Gateway subprocess on demand- skill execution runs with
SKILL_SANDBOX_MODE=docker
Install
Adjust these placeholders before installing:
/opt/bigtime/app-> repository root on the server/opt/bigtime/app/.venv/bin/python-> Python interpreter/etc/bigtime/bigtime.env-> shared environment filebigtime-> service user
Then copy units:
sudo mkdir -p /etc/bigtime
sudo cp .env /etc/bigtime/bigtime.env
sudo cp deploy/systemd/bigtime-*.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now bigtime-agent.service
sudo systemctl enable --now bigtime-trading.service
sudo systemctl enable --now bigtime-news.service
sudo systemctl enable --now bigtime-runtime.service
Frontend
Recommended production frontend mode:
- build with
cd frontend && npm ci && npm run build - let
nginxservefrontend/distdirectly
The repository also contains backend.apps.frontend_service, but for
production the lower-complexity path is static hosting via nginx.