aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-11-07 12:02:19 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2015-11-07 12:02:19 -0500
commitc4224a73a0a4c01dcdd0e9b0d5b2d4adce069fe6 (patch)
treef21923ac465b13fd6681e820073311a3fbaf7c4f
parenta7a58a43754c4d058aa439418b3e7aa9dd2636e7 (diff)
downloadslack-c4224a73a0a4c01dcdd0e9b0d5b2d4adce069fe6.tar.gz
add config file
-rw-r--r--slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/slack.py b/slack.py
index 2100755..b7b1852 100644
--- a/slack.py
+++ b/slack.py
@@ -1,9 +1,10 @@
from flask import Flask, jsonify, request
app = Flask(__name__)
+app.config.from_envvar('CONF')
@app.route("/echo", methods=['POST'])
def echo():
return request.form['text']
if __name__=="__main__":
- app.run(debug=True)
+ app.run()