简体   繁体   中英

Why is gcloud app deploy uploading 0 files to google cloud storage?

At linux I'm using Google gcloud. I notice that not always new or modified files are uploaded to the Google Cloud Storage when I use the command:

gcloud app deploy

I get the following feedback:

╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.                                             
Setting traffic split for service [default]...done.                            

The version I use is:

Google Cloud SDK 318.0.0
bq 2.0.62
core 2020.11.06
gsutil 4.54

Is there a way to force the upload of files?

Thanks, Hans

I've solved this by creating an "empty" reset project, you will find the app.yaml below. When this error occurs I select this reset project, deploy it and then I select my real project and deploy it again. That works for me.

 # application: reset # version: 1 runtime: python27 automatic_scaling: max_instances: 1 api_version: 1 threadsafe: true default_expiration: "1s" handlers: - url: / static_files: reset.html upload: reset.html secure: always http_headers: Vary: Accept-Encoding Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'none' Strict-Transport-Security: max-age=63072000 X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block

in node.js just renamed the file name server.js to app.js and run the command gcloud app deploy again, its works for me!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM