Skip to content

Commit

Permalink
[fix]Specifies the port to start_ui
Browse files Browse the repository at this point in the history
  • Loading branch information
QiRaining committed Feb 14, 2017
1 parent 5e3ea06 commit ddd3a3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zstack_dashboard/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,12 @@ def index():

def main():
logging.getLogger('pika').setLevel(logging.DEBUG)
app.run(host="0.0.0.0", threaded=True)
port = os.getenv('ZSTACK_DASHBOARD_PORT')
if not port:
port = 5000
else:
port = int(port)
app.run(host="0.0.0.0", port=port, threaded=True)

if __name__ == "__main__":
main()

0 comments on commit ddd3a3e

Please sign in to comment.