无法使用gunicorn运行(Python)瓶子应用程序

无法使用gunicorn运行(Python)瓶子应用程序,python,python-3.x,gunicorn,bottle,Python,Python 3.x,Gunicorn,Bottle,我刚开始用瓶子。我在上找到了一个示例应用程序。该示例只有一个server.py文件,如下所示 import bottle APP = bottle.Bottle() @APP.get('/') def index(): return '<p>Hello</p>' if __name__ == '__main__': bottle.run(application=APP) 作为依赖项。我正在使用Python 3.7.2。在运行pip安装-r requirem

我刚开始用瓶子。我在上找到了一个示例应用程序。该示例只有一个server.py文件,如下所示

import bottle

APP = bottle.Bottle()

@APP.get('/')
def index():
  return '<p>Hello</p>'

if __name__ == '__main__':
  bottle.run(application=APP)
作为依赖项。我正在使用Python 3.7.2。在运行pip安装-r requirements.txt之后,我运行了python server.py。服务器在端口8080上无误启动

我尝试使用gunicorn运行服务器,如下所示

gunicorn -w 2 -b 0.0.0.0:8080 server:app    

这将导致错误,服务器无法启动。gunicorn命令有什么问题?

gunicorn-w2-b0.0.0:8080服务器:APP


感谢克劳斯D指出

app
app
不同。gunicorn-w2-b0.0.0.0:8080服务器:app工作正常。非常感谢。
gunicorn -w 2 -b 0.0.0.0:8080 server:app