remove the services bullshit

This commit is contained in:
Jack Eilles 2024-01-11 21:05:55 +00:00
parent a7c5b3a9bc
commit 373a12043a
4 changed files with 4 additions and 26 deletions

View file

@ -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

View file

@ -7,12 +7,4 @@ fi
apt install mongodb-org python3-pip python3-venv 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)" echo "Installation complete, launch xygt with ./run.py (in the venv)"

View file

@ -4,4 +4,5 @@ pymongo
python-magic python-magic
flask-login flask-login
flask-bcrypt flask-bcrypt
flask-wtf flask-wtf
waitress

6
run.py
View file

@ -1,9 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Run the app - MADE FOR SYSTEMD SERVICE
from app import app from app import app
from waitress import serve
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', debug=False) serve(app, listen='*:5000')
########################################