diff --git a/server/simplex-bot.service b/server/simplex-bot.service new file mode 100644 index 0000000..62c6130 --- /dev/null +++ b/server/simplex-bot.service @@ -0,0 +1,13 @@ +[Unit] +Description=CGS Server +After=network.target + +[Service] +User=cgsserver +WorkingDirectory=/opt/cgs/server +Environment=FLASK_CONFIG=production +ExecStart=/opt/cgs/server/venv/bin/gunicorn -b localhost:5000 --preload --workers={{ gunicorn_workers }} --threads={{ gunicorn_threads }} -t {{ gunicorn_timeout }} --access-logfile /var/log/cgsserver/access.log --error-logfile /var/log/cgsserver/error.log app:app +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/server/tellme.service b/server/tellme.service new file mode 100644 index 0000000..aacb4de --- /dev/null +++ b/server/tellme.service @@ -0,0 +1,13 @@ +[Unit] +Description=Tellme Server +After=network.target + +[Service] +User=cgsserver +WorkingDirectory=/opt/tellme +Environment=FLASK_CONFIG=production +ExecStart=gunicorn -b 0.0.0.0:8080 --preload --workers=1 --threads=1 -t 300 --access-logfile /var/log/tellme/access.log --error-logfile /var/log/tellme/error.log app:app +Restart=always + +[Install] +WantedBy=multi-user.target