How can I exclude a file from deploy in gcloud?

后端 未结 3 1402
情话喂你
情话喂你 2021-01-11 13:29

I have built a Node.js app and what I do to deploy is cd into my project\'s directory and run gcloud preview app deploy. This works, but in the fil

3条回答
  •  死守一世寂寞
    2021-01-11 14:04

    I believe you will want to use the skip_files directive in your app.yaml to exclude paths or files you do not want deployed.

    Something like:

    skip_files:
      - ^your_data_dir/.*\.json?
    

提交回复
热议问题