Fixed windows side packages; changed start script to scripts...

This commit is contained in:
Maxim Stewart 2020-02-23 23:39:15 -06:00
parent e9bc0c6837
commit 4f076b9497
4 changed files with 24 additions and 2 deletions

9
requirements-windows.txt Normal file
View File

@ -0,0 +1,9 @@
Click==7.0
Flask==1.1.1
Flask-SQLAlchemy==2.4.1
itsdangerous==1.1.0
Jinja2==2.10.3
MarkupSafe==1.1.1
SQLAlchemy==1.3.11
waitress==1.4.3
Werkzeug==0.16.0

4
src/start.sh → src/start-Linux.sh Executable file → Normal file
View File

@ -6,8 +6,8 @@
function main() {
source "../bin/activate"
source "../venv/bin/activate"
# Note can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable...
gunicorn wsgi:app -b 127.0.0.1:4040 # <module>:<app> IE <file>:<flask app variable>
gunicorn wsgi:app -b 127.0.0.1:8080 # <module>:<app> IE <file>:<flask app variable>
}
main $@;

13
src/start-windows.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
source "../venv/Scripts/activate"
# Note can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable...
waitress-serve --listen=127.0.0.1:8080 wsgi:app # <module>:<app> IE <file>:<flask app variable>
}
main $@;