It may have been waitress I was thinking of. Example script:
# run.py from https://www.devdungeon.com/content/run-python-wsgi-web-app-waitress
import os
from waitress import serve
from app import app # Import your app
# Run from the same directory as this script
this_files_dir = os.path.dirname(os.path.abspath(__file__))
os.chdir(this_files_dir)
# `url_prefix` is optional, but useful if you are serving app on a sub-dir
# behind a reverse-proxy.
serve(app, host='127.0.0.1', port=5000)
It may have been waitress I was thinking of. Example script:
```
# run.py from https://www.devdungeon.com/content/run-python-wsgi-web-app-waitress
import os
from waitress import serve
from app import app # Import your app
# Run from the same directory as this script
this_files_dir = os.path.dirname(os.path.abspath(__file__))
os.chdir(this_files_dir)
# `url_prefix` is optional, but useful if you are serving app on a sub-dir
# behind a reverse-proxy.
serve(app, host='127.0.0.1', port=5000)
```
My issue with getting this going locally is that I am running my digipeater on an SBC behind another machine running yunohost, so getting ports and subdomains lined up is a new challenge for me. Once I figure it out, I'll share what I did.
My issue with getting this going locally is that I am running my digipeater on an SBC behind another machine running yunohost, so getting ports and subdomains lined up is a new challenge for me. Once I figure it out, I'll share what I did.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
gunicorn will be more secure/stable than the internal Flask server. Use and document.
Run with gunicornto Run with gunicorn or waitressIt may have been waitress I was thinking of. Example script:
I think the URL needs to be changed to access from another machine.
My issue with getting this going locally is that I am running my digipeater on an SBC behind another machine running yunohost, so getting ports and subdomains lined up is a new challenge for me. Once I figure it out, I'll share what I did.
I got the reverse proxy figured out.
Now can run in screen with
./start-aprs_api.shas of23d52a80da.