Added Files
This commit is contained in:
5
scripts/mkdir.sh
Executable file
5
scripts/mkdir.sh
Executable 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
1
scripts/start_flask.sh
Executable file
@@ -0,0 +1 @@
|
||||
python /web/web.py > /dev/null 2>&1 &
|
3
scripts/stop_flask.py
Executable file
3
scripts/stop_flask.py
Executable file
@@ -0,0 +1,3 @@
|
||||
import requests
|
||||
|
||||
requests.post("http://127.0.0.1/shutdown")
|
6
scripts/stop_flask.sh
Executable file
6
scripts/stop_flask.sh
Executable 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
1
scripts/stop_flask1.sh
Executable file
@@ -0,0 +1 @@
|
||||
python /web/scripts/stop_flask.py
|
Reference in New Issue
Block a user