5
我想用Google App Engine部署Django应用程序。GAE没有看到gunicorn,但它已经安装
我的app.yaml文件:
# [START runtime]
runtime: python
api_version: 1
threadsafe: true
env: flex
entrypoint: gunicorn -b :$PORT wsgi
runtime_config:
python_version: 3.4
env_variables:
CLOUDSQL_CONNECTION_NAME: ugram-mysql
CLOUDSQL_USER: root
handlers:
- url:/
script: wsgi.application
# [END runtime]
但是当我运行gcloud app deploy
,应用程序部署在运行(5分钟),但我得到一个错误:
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
/bin/sh: 1: exec: gunicorn: not found
但gunicorn已安装
mysupers-beta:~$ gunicorn
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: No application module specified.