Added Files

This commit is contained in:
Joachim Hummel
2020-07-22 14:13:09 +02:00
parent 200cc84109
commit ff1789b3e3
12 changed files with 156 additions and 0 deletions

5
scripts/mkdir.sh Executable file
View File

@@ -0,0 +1,5 @@
mkdir -p /web
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
python -m pip install Flask
#sdssdsds

1
scripts/start_flask.sh Executable file
View File

@@ -0,0 +1 @@
python /web/web.py > /dev/null 2>&1 &

3
scripts/stop_flask.py Executable file
View File

@@ -0,0 +1,3 @@
import requests
requests.post("http://127.0.0.1/shutdown")

6
scripts/stop_flask.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/python
import requests
requests.post("http://127.0.0.1/shutdown")

1
scripts/stop_flask1.sh Executable file
View File

@@ -0,0 +1 @@
python /web/scripts/stop_flask.py