Procfile
web: python server.py
server.py
from os import environ
from bottle import app, route, run, static_file
@route('/')
def root():
return "Hello world!"
if __name__ == '__main__':
run(server='gunicorn', host='0.0.0.0', port=int(environ.get("PORT", 5000)))
requirements.txt
gunicorn
psycopg2
git+https://github.com/defnull/bottle#egg=bottle
Relevant portion of logfile (after git push
)
heroku[router]: at=error code=H14 desc="No web processes running"