mirror of
https://github.com/balkian/eestec.codeit.git
synced 2025-07-05 14:12:21 +00:00
Update db after webserver
This commit is contained in:
parent
f492c2264a
commit
c79597edb0
2
app.py
2
app.py
@ -58,7 +58,7 @@ def update_db():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Bind to PORT if defined, otherwise default to 5000.
|
# Bind to PORT if defined, otherwise default to 5000.
|
||||||
update_db()
|
|
||||||
port = int(os.environ.get('PORT', 5000))
|
port = int(os.environ.get('PORT', 5000))
|
||||||
app.run(host='0.0.0.0', port=port)
|
app.run(host='0.0.0.0', port=port)
|
||||||
|
update_db()
|
||||||
# Connect to memcache with config from environment variables.
|
# Connect to memcache with config from environment variables.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user