diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..538ca43 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn app --log-file - diff --git a/server.py b/app.py similarity index 92% rename from server.py rename to app.py index 97a7e62..e125455 100755 --- a/server.py +++ b/app.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import bottle from bottle import ( get, run, @@ -13,6 +14,7 @@ import thesethreewords as these def index(): return template('index', err=None) + @get('/') def showMap(threewords): try: @@ -25,3 +27,5 @@ def showMap(threewords): if __name__ == '__main__': run(host='localhost', port=8080) + +app = bottle.default_app() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..341da8d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +python-geohash==0.8.5 +bottle==0.12.7