2019-11-01 22:54:25 +00:00
|
|
|
#!/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 "../bin/activate"
|
|
|
|
# Note can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable...
|
|
|
|
}
|
2019-12-22 19:09:36 +00:00
|
|
|
gunicorn wsgi:app -b 127.0.0.1:4040 # <module>:<app> IE <file>:<flask app variable>
|
2019-11-01 22:54:25 +00:00
|
|
|
main $@;
|