我正在构建我的第一个Vue.js网络应用程序。我已经通过以下方法设置了一个新项目:
vue init webpack <project_name>我做了一些工作,几乎所有事情都按我的意愿运作(除了sass,但这是另一个时代的故事)。我现在想把我的网络应用程序部署到google应用引擎上。我在GAE上创建了一个新的node.js项目。我已经创建了我的app.yaml (见下文)。我按照通常的方式部署
gcloud app deploy --project="<project_name>"但是,在很长一段时间(~5-8分钟)之后,部署失败了。
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has
failed to become healthy in the allotted time and therefore was
rolled back. If you believe this was an error, try adjusting the
'app_start_timeout_sec' setting in the 'readiness_check' section.我目前的项目结构是:
我的app.yaml是:
runtime: nodejs
env: flex
handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html
- url: /(.*)
static_files: dist/\1
upload: dist/(.*)发布于 2019-01-23 23:36:55
将此配置添加到文件app.yaml中
runtime: php55
threadsafe: true
handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html
- url: /(.*)
static_files: dist/\1
upload: dist/(.*)https://stackoverflow.com/questions/48358899
复制相似问题