最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Gcloud deploy specific files - Stack Overflow

programmeradmin4浏览0评论

I am serving some static js files with app engine. I am deploying code via with gcloud preview app deploy . This currently deploys all of my static files, is there a method to upload just a single js file in my static directory to app engine? Maybe a app.yaml config? I basically just need to scp file.js -> gcloud instance but would like to use gcloud tool if possible.

Here is my app.yaml:

version: 1
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "30d"
- url: /(.*\.js)
  mime_type: text/javascript
  static_files: static/\1
  upload: static/(.*\.js)

I am serving some static js files with app engine. I am deploying code via with gcloud preview app deploy . This currently deploys all of my static files, is there a method to upload just a single js file in my static directory to app engine? Maybe a app.yaml config? I basically just need to scp file.js -> gcloud instance but would like to use gcloud tool if possible.

Here is my app.yaml:

version: 1
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "30d"
- url: /(.*\.js)
  mime_type: text/javascript
  static_files: static/\1
  upload: static/(.*\.js)
Share Improve this question asked Oct 2, 2014 at 16:48 Rick ChenRick Chen 611 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

There is no way to upload a single random file to GAE, but take a look carefully at the logs when the app is being deployed: only the files that were changed since last deployment are being uploaded, so unless all your static files were edited - they are not going to be re-deployed every single time.

发布评论

评论列表(0)

  1. 暂无评论