档案
web: python server.py
服务器.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)))
要求.txt
gunicorn
psycopg2
git+https://github.com/defnull/bottle#egg=bottle
日志文件的相关部分(之后git push
)
heroku[router]: at=error code=H14 desc="No web processes running"