我正在使用以下app.yaml。我正在尝试部署我的角度应用程序。尝试使用3种不同的sdk变体,但每次它都会引发错误。 -218 -201- 215
runtime: custom
env: flex
threadsafe: true
automatic_scaling:
min_num_instances: 1
max_num_instances: 10
cool_down_period_sec: 120 # default value
skip_files:
- ^(.*\/)?.*\.py[co]$
- ^(.*\/)?.*\.py$
- ^(.*\/)?.*/RCS/.*$
- ^.git(.*\/)?
- ^(.*/)?.*\.bak$
- ^(.*)?\/?src[\/]?(?:(.*)?[\/]?)$
- ^[\.]?ssl(.*[\/]?)?$
- ^[\.]?idea(.*[\/]?)?$
- ^[\.]?e2e(.*[\/]?)?$
handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html
application_readable: true
- url: /
static_dir: dist
application_readable: true
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
application_readable: true
- url: /(.+\.(gif|png|jpg|js|css|json|woff2|svg|ttf|eot|woff))$
static_files: \1
upload: .+\.(gif|png|jpg|js|css|json|woff2|svg|ttf|eot|woff)$
application_readable: true
但是我总是以错误结尾 gcloud组件更新-版本185.0.0 错误:gcloud崩溃(类型错误):不支持的操作数类型 + =:“ int”和“ NoneType”
If you would like to report this issue, please run the following
command:
gcloud feedback
To check gcloud for common problems, please run the following
command:
gcloud info --run-diagnostics
有人可以指导我吗? 注意:几天前,我就能成功部署201版本。
答案 0 :(得分:0)
我不确定为什么。我也很困惑。我删除了对“ skip_files”部分的所有评论,然后使我可以进行部署而没有任何错误
api_version: 1
runtime: python
env: flex
threadsafe: yes
readiness_check:
check_interval_sec: 120
timeout_sec: 40
failure_threshold: 5
success_threshold: 5
app_start_timeout_sec: 1500
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
- ^(.*/)?.*\.bak$
- ^(.*/)?.*\.yaml$
- ^node_modules/(.*/)?
- ^src/(.*/)?
handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html
- url: /
static_dir: dist