Skip to content

Commit 8dfe252

Browse files
committed
[heroku switch][xs]:
Procfile modified to use gunicorn zappa removed from requirements swgi stuff removed to run the app
1 parent 7bc6e53 commit 8dfe252

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: python dpr.py
1+
web: gunicorn dpr:application

dpr.py

-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@
1010
application = create_app()
1111

1212
if __name__ == "__main__":
13-
# from gevent.wsgi import WSGIServer
14-
# http_server = WSGIServer(('', 5000), application)
15-
# http_server.serve_forever()
1613
port = int(os.environ.get('PORT', 5000))
1714
application.run(port=port, host='0.0.0.0')

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Flask-SQLAlchemy==2.1
44
Flask-Markdown==0.3
55
Flask-Gravatar==0.4.2
66
Flask-OAuthlib==0.9.3
7-
zappa==0.28.2
7+
# zappa==0.28.2
88
boto3==1.4.3
99
flasgger==0.5.13
1010
python-dotenv==0.6.0
@@ -17,4 +17,5 @@ blinker==1.4
1717
enum34==1.1.6
1818
gevent==1.2.1
1919
BeautifulSoup==3.2.1
20+
# for running on heroku
2021
gunicorn==19.7.1

0 commit comments

Comments
 (0)