1
0
mirror of https://github.com/balkian/eestec.codeit.git synced 2024-09-28 22:31:41 +00:00

Update db after webserver

This commit is contained in:
J.Fernando Sánchez 2013-03-01 20:12:29 +01:00
parent f492c2264a
commit c79597edb0

2
app.py
View File

@ -58,7 +58,7 @@ def update_db():
if __name__ == '__main__':
# Bind to PORT if defined, otherwise default to 5000.
update_db()
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
update_db()
# Connect to memcache with config from environment variables.