mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-23 07:12:39 +01:00
remove the services bullshit
This commit is contained in:
parent
a7c5b3a9bc
commit
373a12043a
4 changed files with 4 additions and 26 deletions
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=Runs every minute to autoclean xygt.
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User=root
|
||||
ExecStart=/usr/bin/autoclean.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -7,12 +7,4 @@ fi
|
|||
|
||||
apt install mongodb-org python3-pip python3-venv
|
||||
|
||||
systemctl enable --now mongod
|
||||
|
||||
cp autoclean-xygt.service /lib/systemd/system/
|
||||
cp autoclean.py /usr/bin/
|
||||
cp config.py /usr/bin/
|
||||
|
||||
systemctl enable --now autoclean-xygt.service
|
||||
|
||||
echo "Installation complete, launch xygt with ./run.py (in the venv)"
|
|
@ -4,4 +4,5 @@ pymongo
|
|||
python-magic
|
||||
flask-login
|
||||
flask-bcrypt
|
||||
flask-wtf
|
||||
flask-wtf
|
||||
waitress
|
6
run.py
6
run.py
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
# Run the app - MADE FOR SYSTEMD SERVICE
|
||||
|
||||
from app import app
|
||||
from waitress import serve
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', debug=False)
|
||||
|
||||
########################################
|
||||
serve(app, listen='*:5000')
|
||||
|
|
Loading…
Reference in a new issue