Skip to content

Commit

Permalink
Updates for Heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhaas committed Feb 3, 2016
1 parent a7068a9 commit 781cac1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
23 changes: 18 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
flask
flask-slack
slacker
wordcloud
matplotlib
cycler==0.9.0
Flask==0.10.1
Flask-Slack==0.1.5
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
matplotlib==1.5.1
numpy==1.10.4
Pillow==3.1.0
pyparsing==2.0.7
python-dateutil==2.4.2
pytz==2015.7
requests==2.9.1
six==1.10.0
slacker==0.9.0
Werkzeug==0.11.3
wheel==0.24.0
wordcloud==1.2
3 changes: 2 additions & 1 deletion slackcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
slack_teamid = os.environ.get('SLACK_TEAMID')
slack_cmd1_name = os.environ.get('SLACK_CMD1_NAME')
slack_cmd1_token = os.environ.get('SLACK_CMD1_TOKEN')
port = int(os.environ.get("PORT", 8081))


def upload_wordcloud(channel_id, channel_name):
Expand Down Expand Up @@ -54,4 +55,4 @@ def parse_slash_cmd(**kwargs):
return slack.response('Enjoy your wordcloud!')

if __name__ == "__main__":
app.run(host='127.0.0.1', port=8081)
app.run(host='127.0.0.1', port=port)

0 comments on commit 781cac1

Please sign in to comment.