Skip to content

Commit

Permalink
Adicionando servidor Flask para Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
romulofff committed May 16, 2019
1 parent c2f44fa commit 99c7801
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: python JoguinhosGratis.py
web: python server.py
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ asn1crypto==0.24.0
certifi==2019.3.9
cffi==1.12.3
chardet==3.0.4
Click==7.0
cryptography==2.6.1
Flask==1.0.2
future==0.17.1
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
MarkupSafe==1.1.1
pkg-resources==0.0.0
praw==6.2.0
prawcore==1.0.1
pycparser==2.19
Expand All @@ -14,3 +20,4 @@ six==1.12.0
update-checker==0.16
urllib3==1.24.3
websocket-client==0.56.0
Werkzeug==0.15.4
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from os import environ
from flask import Flask

app = Flask(__name__)
app.run(environ.get('PORT'))

0 comments on commit 99c7801

Please sign in to comment.