I've encountered two issues trrying to deploy apps via the gcloud command line.
The first is that certain apps just don't want to deploy. They consistently fail with the same errors:
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Errors were encountered while copying files to App Engine.
Details: [
[
{
"description": "Failed to save static file.",
"resourceType": "file"
},
{
"description": "Failed to save static file.",
"resourceType": "file"
}
]
]
The files it lists seem (consistently) to be the (compiled) js files I'm uploading. Though it says 13 errors were encountered, so perhaps I'm only seeing the first two? --verbosity debug isn't very helpful with additional details, so hard to know. It occasionally will go through without an error (maybe 2 out of the last 20 times). Other modules in the same project (and same basic structure) seem to deploy with no problems... so no idea what might be the problem here.
HOWEVER, all my newly deployed apps are suffering from the same problem once deployed...
The content-type of the response that serves the HTML for my app is application/octet-stream, which forces the browser to just download my index.html page. So attempting to visit the application's main HTML page just results in a browser download of the raw html file. That stinks!
I was pulling my hair out until I realized that I was able to deploy these apps correctly using the old appcfg.py script.
Appengine -- you're really frustrating lately! For those of us in the gcloud world (and not using just stand-alone appengine), it's really difficult to figure out the "right" way of doing things. It seems like there's recently been a push to get people using the old scripts again (which is slightly annoying after trying to get my team to adopt the gcloud CLI for the last several months) and things have felt really broken lately. Sorry to say -- we've loved GAE a long time, but we'll definitely be looking at alternatives asap.
Would love any insight you have for understanding what has gone wrong with our gcloud-based deployments.