Spaces:
Sleeping
Sleeping
Xiao commited on
Commit ·
0a64cc4
1
Parent(s): fdb9285
react+flask to HF
Browse files
run_hf.sh
CHANGED
|
@@ -2,13 +2,14 @@
|
|
| 2 |
echo starting daemos
|
| 3 |
# service nginx start
|
| 4 |
nginx &
|
|
|
|
| 5 |
# nginx -g "daemon off;"
|
| 6 |
echo starting flask
|
| 7 |
export FLASK_APP=/app/app.py
|
| 8 |
python -m flask run --host=0.0.0.0 --port=8000 &
|
| 9 |
-
echo starting
|
| 10 |
#start npm
|
| 11 |
npm start
|
| 12 |
# npm run prod
|
| 13 |
|
| 14 |
-
echo done!
|
|
|
|
| 2 |
echo starting daemos
|
| 3 |
# service nginx start
|
| 4 |
nginx &
|
| 5 |
+
# Containers run nginx with global directives and daemon off
|
| 6 |
# nginx -g "daemon off;"
|
| 7 |
echo starting flask
|
| 8 |
export FLASK_APP=/app/app.py
|
| 9 |
python -m flask run --host=0.0.0.0 --port=8000 &
|
| 10 |
+
echo starting npm
|
| 11 |
#start npm
|
| 12 |
npm start
|
| 13 |
# npm run prod
|
| 14 |
|
| 15 |
+
echo done!
|