我一步一步地跟踪this tutorial。只需获取以下内容:

这是我的app.yml
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: dist/fe/index.html
upload: dist/fe/index.html
- url: /
static_dir: dist/fe
skip_files:
- e2e/
- node_modules/
- src/
- ^(.*/)?\..*$
- ^(.*/)?.*\.json$
- ^(.*/)?.*\.md$
- ^(.*/)?.*\.yaml$
- ^LICENSE我不知道为什么会这样。angular应用程序在默认的4200端口上运行。这是原因吗?
发布于 2020-06-16 16:41:26
TL;DR:在将项目部署到GAE之前,需要运行npm isntall和ng run命令。
我也遵循了你提到的教程,并得到了相同的结果。通过检查GAE日志,我能够看到发生了404个错误,它们的消息是Static file referenced by handler not found: dist/pounds-to-kg/index.html
ng run命令用于生成项目并创建存储所有工件的dist/文件夹
https://stackoverflow.com/questions/62384357
复制相似问题