Merge pull request #2 from kdungs/webservice

Getting ready for heroku
This commit is contained in:
Tim Head 2014-11-17 15:53:59 +01:00
commit 6902b59dbf
3 changed files with 7 additions and 0 deletions

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: gunicorn app --log-file -

View File

@ -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('/<threewords>')
def showMap(threewords):
try:
@ -25,3 +27,5 @@ def showMap(threewords):
if __name__ == '__main__':
run(host='localhost', port=8080)
app = bottle.default_app()

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
python-geohash==0.8.5
bottle==0.12.7