chore(infra): align systemd units and Forgejo runners
Point services to /opt/innercontext/current release paths, remove stale phase completion docs, and switch Forgejo workflows to run on the lxc runner label.
This commit is contained in:
parent
2efdb2b785
commit
5d69a976c4
7 changed files with 118 additions and 654 deletions
|
|
@ -6,11 +6,11 @@ After=network.target
|
|||
Type=simple
|
||||
User=innercontext
|
||||
Group=innercontext
|
||||
WorkingDirectory=/opt/innercontext/frontend
|
||||
WorkingDirectory=/opt/innercontext/current/frontend
|
||||
Environment=PORT=3000
|
||||
Environment=HOST=127.0.0.1
|
||||
EnvironmentFile=/opt/innercontext/frontend/.env.production
|
||||
ExecStart=/usr/local/bin/node /opt/innercontext/frontend/build/index.js
|
||||
EnvironmentFile=/opt/innercontext/current/frontend/.env.production
|
||||
ExecStart=/usr/local/bin/node /opt/innercontext/current/frontend/build/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ After=network.target
|
|||
Type=simple
|
||||
User=innercontext
|
||||
Group=innercontext
|
||||
WorkingDirectory=/opt/innercontext/backend
|
||||
EnvironmentFile=/opt/innercontext/backend/.env
|
||||
ExecStart=/opt/innercontext/backend/.venv/bin/python -m innercontext.workers.pricing
|
||||
WorkingDirectory=/opt/innercontext/current/backend
|
||||
EnvironmentFile=/opt/innercontext/current/backend/.env
|
||||
ExecStart=/opt/innercontext/current/backend/.venv/bin/python -m innercontext.workers.pricing
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,9 @@ After=network.target
|
|||
Type=simple
|
||||
User=innercontext
|
||||
Group=innercontext
|
||||
WorkingDirectory=/opt/innercontext/backend
|
||||
EnvironmentFile=/opt/innercontext/backend/.env
|
||||
ExecStartPre=/opt/innercontext/backend/.venv/bin/alembic upgrade head
|
||||
ExecStart=/opt/innercontext/backend/.venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000
|
||||
WorkingDirectory=/opt/innercontext/current/backend
|
||||
EnvironmentFile=/opt/innercontext/current/backend/.env
|
||||
ExecStart=/opt/innercontext/current/backend/.venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue