Skip to content

Commit

Permalink
host/port
Browse files Browse the repository at this point in the history
Use OMAS_HOST and OMAS_PORT to optionally configure the host
and port that omas will listen to.
  • Loading branch information
edsu committed Apr 23, 2019
1 parent 5a70f03 commit 1367483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Omas/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,6 @@ def information(meipath):


if __name__ == "__main__":
app.run(debug=True)
host = os.environ.get('OMAS_HOST', '127.0.0.1')
port = os.environ.get('OMAS_PORT', 5000)
app.run(host=host, port=port, debug=True)

0 comments on commit 1367483

Please sign in to comment.