mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
refactor: app.py host & port 수정
This commit is contained in:
parent
acc2a3ff90
commit
03c14f0faa
@ -298,4 +298,7 @@ def create_app():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = create_app()
|
app = create_app()
|
||||||
app.run(host='0.0.0.0', port=5001, debug=True)
|
host = os.getenv('SERVER_HOST', '0.0.0.0')
|
||||||
|
port = int(os.getenv('SERVER_PORT', '5001'))
|
||||||
|
|
||||||
|
app.run(host=host, port=port, debug=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user