Remote-Mouse/src/linux-start.sh

15 lines
554 B
Bash
Raw Normal View History

2020-05-28 18:07:53 +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() {
2020-06-29 02:55:58 +00:00
source "/home/abaddon/Portable_Apps/py-venvs/remotemouse-venv/bin/activate"
2020-05-28 18:07:53 +00:00
# Note can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable...
2020-06-29 02:55:58 +00:00
# Note: NEED -k eventlet for this to work! I spent too many hours on this...
gunicorn wsgi:app -b 127.0.0.1:8088 -k eventlet # <module>:<app> IE <file>:<flask app variable>
2020-05-28 18:07:53 +00:00
}
main $@;