Set up to run waitress in screen if needed.
This commit is contained in:
@ -40,7 +40,7 @@ def read_logs(log_folder):
|
||||
item['station_lat'] = config['Settings']['station_lat']
|
||||
item['station_lon'] = config['Settings']['station_lon']
|
||||
|
||||
return(json_array)
|
||||
return(json_array)
|
||||
|
||||
class Packets(Resource):
|
||||
def get(self):
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user