Set up to run waitress in screen if needed.

This commit is contained in:
W1CDN 2023-04-11 20:52:59 -05:00
parent f9547c289e
commit 23d52a80da
3 changed files with 7 additions and 3 deletions

View File

@ -55,4 +55,4 @@ data = read_logs(log_folder)
api.add_resource(Packets, '/packets') # and '/locations' is our entry point for Locations
if __name__ == '__main__':
api_app.run(debug=True, host='0.0.0.0') # run our Flask app
api_app.run(debug=True, host='0.0.0.0', port=5001) # run our Flask app

View File

@ -9,4 +9,4 @@ 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(api_app, host='127.0.0.1', port=5000)
serve(api_app, host='127.0.0.1', port=5001)

4
start-aprs_api.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Run `chmod +x start-aprs_api.sh` so this can be run
screen -dmS aprs_api python3 /home/pi/aprs_tools/api_waitress.py