How can I exclude a file from deploy in gcloud?

iuliu.net

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 files I also have a JSON file which acts like the database for my application, which I do not want updated on the site when I deploy. I cannot seem to find any way of doing this. If it's not possible, being able to see the JSON file remotely and copy its data to the local one and then deploy everything would do me too, but I cannot seem to be able to do that either.

Michael McCoy

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?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I deploy artifacts from a Maven build to the SourceForge File Release System?

gcloud app deploy tries to compile unwanted files, can I exclude parts of the tree?

How can I exclude $(this) from a jQuery selector?

In Yii2, how can I exclude layout from rendering in a view file?

How can I exclude a sub-directory with a .dockerignore file

How can I exclude some tags from `git log`?

How can I remotely deploy a flow file in Node-RED?

How can I configure Polymer-cli build to exclude some file-path from being minified?

How can I exclude files in Gradle's jar.from?

How can I exclude a particular file from test coverage analysis?

How can I exclude a specific type from a TypeClass resolution?

What IAM permissions do I need for a service key that can run "gcloud builds submit" and "gcloud run deploy"?

When using 'gcloud run deploy', how can I specify the service name with command line args?

I can't get rsync --exclude-from to work with a file

How can I exclude source file metadata from output when compiling?

Doxygen. How can I exclude more than one file?

How do I exclude a specific extension from recursive file copying?

In Beyond Compare, how can I exclude file names with special characters?

how can i deploy the jar file in remote server

UWP app: How can I deploy updatable Json file?

How can I exclude files from indexing but include them in .war file?

How can I exclude child class from click event?

How can I exclude .* directories from rsync but include the .vnc directory?

How can I exclude certain 'columns' from a list of tuples?

How can I exclude some packages from (transitive) dependencies?

How can I exclude the 10 from the output?

How can I exclude individual file types from URL forwarding with htaccess

How can I exclude an image from Hugo's public directory?

How can I exclude comma from the matched string?