From 4f076b9497882abffcb1dbfa771a2e9f1d15be53 Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sun, 23 Feb 2020 23:39:15 -0600 Subject: [PATCH] Fixed windows side packages; changed start script to scripts... --- requirements.txt => requirements-linux.txt | 0 requirements-windows.txt | 9 +++++++++ src/{start.sh => start-Linux.sh} | 4 ++-- src/start-windows.sh | 13 +++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) rename requirements.txt => requirements-linux.txt (100%) create mode 100644 requirements-windows.txt rename src/{start.sh => start-Linux.sh} (76%) mode change 100755 => 100644 create mode 100644 src/start-windows.sh diff --git a/requirements.txt b/requirements-linux.txt similarity index 100% rename from requirements.txt rename to requirements-linux.txt diff --git a/requirements-windows.txt b/requirements-windows.txt new file mode 100644 index 0000000..8416a3a --- /dev/null +++ b/requirements-windows.txt @@ -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 diff --git a/src/start.sh b/src/start-Linux.sh old mode 100755 new mode 100644 similarity index 76% rename from src/start.sh rename to src/start-Linux.sh index 268f599..e0ce274 --- a/src/start.sh +++ b/src/start-Linux.sh @@ -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 # : IE : + gunicorn wsgi:app -b 127.0.0.1:8080 # : IE : } main $@; diff --git a/src/start-windows.sh b/src/start-windows.sh new file mode 100644 index 0000000..4a409c8 --- /dev/null +++ b/src/start-windows.sh @@ -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 # : IE : +} +main $@;