Add custom port setting to config
This commit is contained in:
parent
48271eb8c2
commit
781e31400a
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ from flask import Flask, render_template, redirect, url_for, request, session, j
|
|||
from flask_sqlalchemy import SQLAlchemy
|
||||
from werkzeug.utils import secure_filename
|
||||
|
||||
from config_hackWPI import api_keys, WAITLIST_LIMIT, HACKATHON_TIME, ALLOWED_EXTENSIONS
|
||||
from config_hackWPI import api_keys, SERVER_PORT, WAITLIST_LIMIT, HACKATHON_TIME, ALLOWED_EXTENSIONS
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_pyfile('config.py')
|
||||
|
@ -550,4 +550,4 @@ def allowed_file(filename):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=80, threaded=True)
|
||||
app.run(host='0.0.0.0', port=SERVER_PORT, threaded=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue