Skip to content

Commit cc089b7

Browse files
committed
systemd: load env file in gunicorn
allows to set georchestradatadir there for @fphg ;)
1 parent 21a95b8 commit cc089b7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CELERY_OPTS="-P solo -B -E -s workdir/celeybeat-schedule"
33
CELERY_LOGLEVEL=INFO
44
FLASK_APP=geordash
55
FLASK_OPTS="-h 0.0.0.0 -p 5002"
6+
#georchestradatadir=/path/to/datadir

systemd/gaia-gunicorn.service.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ After=network.target
66
Type=simple
77
User=gunicorn
88
Group=gaia
9+
EnvironmentFile=WORKDIR/env
910
WorkingDirectory=WORKDIR
1011
ExecStart=gunicorn
1112
Restart=always

0 commit comments

Comments
 (0)