The Solara documentation website runs on the nyx-cloud server.
| Setting | Value |
|---|---|
| Host | nyx-cloud |
| Branch | stable-ssg |
| Working directory | /root/solara |
| Python | /root/solara/.venv/bin/python3 (Python 3.12) |
| Port | 80 |
The server runs as a systemd service defined in /etc/systemd/system/solara.service:
[Unit]
Description=Solara Website
After=network.target
[Service]
User=root
WorkingDirectory=/root/solara
EnvironmentFile=/root/solara/solara.env
ExecStart=/root/solara/.venv/bin/solara run --host=0.0.0.0 --port=80 solara.website.pages --ssg --production
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.targetEnvironment variables are stored in /root/solara/solara.env:
SOLARA_MODE=productionSOLARA_EXPERIMENTAL_PERFORMANCE=trueUVICORN_PROXY_HEADERS=1FORWARDED_ALLOW_IPS=*- Various API keys for telemetry, email (Postmark), and OpenAI
# Check service status
ssh nyx-cloud "systemctl status solara.service"
# View logs (live)
ssh nyx-cloud "journalctl -u solara.service -f"
# View recent logs
ssh nyx-cloud "journalctl -u solara.service -n 100"
# Restart the service
ssh nyx-cloud "systemctl restart solara.service"
# Check which version is deployed
ssh nyx-cloud "cd /root/solara && git log -1 --oneline"After pushing to stable (which triggers SSG generation to stable-ssg), wait for CI to complete before updating the server:
# Wait for the webdeploy workflow to finish
gh run list --workflow=webdeploy.yml --limit=1
gh run watch <run-id>
# Pull latest changes and restart
ssh nyx-cloud "cd /root/solara && git pull && systemctl restart solara.service"- Release is made on
masterbranch - Push
mastertostable:git push upstream master:stable - CI runs
webdeploy.ymlworkflow which generates SSG pages and pushes tostable-ssg - Wait for CI to complete:
gh run watch <run-id> - Pull changes on nyx-cloud and restart the service