【发布时间】:2013-07-10 12:14:28
【问题描述】:
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
日志文件的相关部分(git push 之后)
heroku[router]: at=error code=H14 desc="No web processes running"
【问题讨论】:
标签: python heroku bottle gunicorn procfile