dynamic port through TICKET_AI_PORT environment variable in service
This commit is contained in:
parent
b7a31e7c01
commit
1b4c924584
@ -96,4 +96,5 @@ def get_logs():
|
|||||||
return jsonify(response_list)
|
return jsonify(response_list)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True, host="0.0.0.0")
|
port = int(os.environ.get("TICKET_AI_PORT", 5000)) # Default to 5000 if no environment variable is set
|
||||||
|
app.run(debug=True, host="0.0.0.0", port=port)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user