You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
INI
26 lines
1.0 KiB
INI
3 years ago
|
[Unit]
|
||
3 years ago
|
Description=tubbymemes meme service
|
||
|
Documentation=https://tubbymemes.xyz
|
||
3 years ago
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
PermissionsStartOnly = true
|
||
3 years ago
|
PIDFile = /opt/tubbymemes/data/gunicorn/tubbymemes.pid
|
||
|
User = tubbymemes
|
||
|
Group = tubbymemes
|
||
|
WorkingDirectory = /opt/tubbymemes
|
||
|
ExecStartPre = /bin/mkdir -p /opt/tubbymemes/data/gunicorn
|
||
|
ExecStartPre = /bin/chown -R tubbymemes:tubbymemes /opt/tubbymemes/data/gunicorn
|
||
|
Environment = FLASK_APP=tubbymemes/app.py
|
||
3 years ago
|
Environment = FLASK_SECRETS=config.py
|
||
|
Environment = FLASK_ENV=production
|
||
|
Environment = FLASK_DEBUG=0
|
||
3 years ago
|
ExecStart = /opt/tubbymemes/.venv/bin/gunicorn --bind 127.0.0.1:4000 "tubbymemes.app:app" --log-file /opt/tubbymemes/data/gunicorn/gunicorn.log --pid /opt/tubbymemes/data/gunicorn/tubbymemes.pid --reload
|
||
|
ExecReload = /bin/kill -s HUP /opt/tubbymemes/data/gunicorn/tubbymemes.pid
|
||
|
ExecStop = /bin/kill -s TERM /opt/tubbymemes/data/gunicorn/tubbymemes.pid
|
||
|
ExecStopPost = /bin/rm -rf /opt/tubbymemes/data/gunicorn/tubbymemes.pid
|
||
3 years ago
|
PrivateTmp = true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|