-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
21 lines (13 loc) · 725 Bytes
/
main.py
File metadata and controls
21 lines (13 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from website import create_app
import os
from flask_recaptcha import ReCaptcha # Import ReCaptcha object
app = create_app()
# app = Flask(__name__)
app.config['RECAPTCHA_SITE_KEY'] = '' # <-- Add your site key
app.config['RECAPTCHA_SECRET_KEY'] = '' # <-- Add your secret key
recaptcha = ReCaptcha(app) # Create a ReCaptcha object by passing in 'app' as parameter
if __name__ == '__main__':
# uncomment this line to run the app on Docker and comment the line to run the app locally
port = int(os.environ.get("PORT","5001"))
app.run(host='0.0.0.0',port=port,debug=True)
# app.run(port=5001, debug=True) # uncomment this line to run the app locally and comment the line to run the app on Docker