changed file names, added socket run for linux

This commit is contained in:
Maxim Stewart 2020-06-03 23:31:14 -05:00
parent 26759f5a70
commit 3fd6b0a8e4
6 changed files with 22 additions and 4 deletions

View File

@ -16,20 +16,20 @@ Windows
``` source bin/Scripts/activate ```
Linux/Mac
``` pip install -r requirements-linux.txt ```
``` pip install -r linux-requirements.txt ```
Windows
``` pip install -r requirements-windows.txt ```
``` pip install -r windows-requirements.txt ```
``` cd src/ ```
Linux/Mac
``` ./start-linux.sh ```
``` ./linux-start.sh ```
Windows
``` ./start-windows.sh ```
``` ./windows-start.sh ```
# Notes

View File

@ -6,6 +6,9 @@
function main() {
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
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:8080 # <module>:<app> IE <file>:<flask app variable>

15
src/socket_run.sh Executable file
View File

@ -0,0 +1,15 @@
#!/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() {
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
source "../venv/Scripts/activate"
gunicorn --bind unix:/tmp/app.sock wsgi:app
}
main $@;