nvidia tested and working, added options for web and api port in jenkinsfile
This commit is contained in:
@ -21,7 +21,8 @@ app_settings = {
|
||||
"secure_api" : True,
|
||||
"push_redis" : False,
|
||||
"run_background" : True,
|
||||
"update_frequency": 1
|
||||
"update_frequency": 1,
|
||||
"custom_api_port": "5000"
|
||||
}
|
||||
|
||||
with open('cosmostat_settings.yaml', 'r') as f:
|
||||
@ -60,6 +61,9 @@ def service_gateway_ip():
|
||||
else:
|
||||
return "0.0.0.0"
|
||||
|
||||
def service_api_port():
|
||||
return cosmostat_settings["custom_api_port"]
|
||||
|
||||
#######################################################################
|
||||
### Redis Functions
|
||||
#######################################################################
|
||||
@ -295,7 +299,7 @@ if __name__ == '__main__':
|
||||
print("Skipping flask background task")
|
||||
|
||||
# Flask API
|
||||
app.run(debug=False, host=service_gateway_ip(), port=5000)
|
||||
app.run(debug=False, host=service_gateway_ip(), port=service_api_port())
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user