init
This commit is contained in:
11
build-deb/flaskapp/DEBIAN/control
Normal file
11
build-deb/flaskapp/DEBIAN/control
Normal file
@@ -0,0 +1,11 @@
|
||||
Package: flaskapp
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Essential: no
|
||||
Installed-Size: 2000
|
||||
Depends: gunicorn, python3-flask-sqlalchemy
|
||||
Homepage: https://gitea.dmz.rs/Decentrala/flaskapp
|
||||
Maintainer: Decentrala <dmz@dmz.rs>
|
||||
Description: Web app
|
||||
Version: 1.0.0
|
3
build-deb/flaskapp/DEBIAN/postinst
Executable file
3
build-deb/flaskapp/DEBIAN/postinst
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
/usr/bin/systemctl enable flaskapp.service
|
||||
/sbin/service flaskapp start
|
3
build-deb/flaskapp/DEBIAN/prerm
Executable file
3
build-deb/flaskapp/DEBIAN/prerm
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
/sbin/service flaskapp stop
|
||||
/usr/bin/systemdctl disable flaskapp.service
|
12
build-deb/flaskapp/lib/systemd/system/freeriders.service
Normal file
12
build-deb/flaskapp/lib/systemd/system/freeriders.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Gunicorn flaskapp service
|
||||
Documentation=man:gunicorn(1)
|
||||
After=network.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/flaskapp/
|
||||
ExecStart=/usr/bin/gunicorn --workers 3 --bind 127.0.0.1:5000 run:app
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user