Skip to content

Commit

Permalink
Add SERVER_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Feb 3, 2017
1 parent 199fa46 commit ba41e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@


from pythoncz import app as application # NOQA


application.config['SERVER_NAME'] = 'python.cz'
5 changes: 4 additions & 1 deletion runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@


if __name__ == '__main__':
host = '0.0.0.0'
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=True)

app.config['SERVER_NAME'] = '{host}:{port}'.format(host=host, port=port)
app.run(host=host, port=port, debug=True)

0 comments on commit ba41e40

Please sign in to comment.