Snippet

Google Cloud Ignore

AOAnonymous One· Aug 31, 20221 min read
  • #Google Cloud
  • #Google Cloud Ignore

Google Cloud Ignore

Several commands in gcloud involve uploading the contents of a directory to Google Cloud to host or build. In many cases, you will not want to upload certain files (i.e., "ignore" them).

Create a .gcloudignore file to list what you do not want uploaded

Filename: .gcloudignore

.gcloudignore
.git
#!include:.gitignore
#!include:.dockerignore

# include build files
!dist

# Firebase functions
functions

# Emulatated data
seed

Display files that will be uploaded

gcloud beta list-files-for-upload

References

0 Comments

Sign in to join the conversation.

Search

Jump to a page, story or project