Art*_*nov 10 django google-app-engine wsgi gunicorn google-compute-engine
我正在尝试使用Google App Engine部署Django应用程序.
我的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]
Run Code Online (Sandbox Code Playgroud)
但是当我运行时gcloud app deploy
,app deploy正在运行(5分钟),但是我收到错误:
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
/bin/sh: 1: exec: gunicorn: not found
Run Code Online (Sandbox Code Playgroud)
但是已经安装了gunicorn
mysupers-beta:~$ gunicorn
usage: gunicorn [OPTIONS] [APP_MODULE]
gunicorn: error: No application module specified.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2559 次 |
最近记录: |