Skip to content

Instantly share code, notes, and snippets.

@waliahimanshu
Last active October 18, 2021 18:50
Show Gist options
  • Save waliahimanshu/a203588266f3e1d480f0e817aa92f2e7 to your computer and use it in GitHub Desktop.
Save waliahimanshu/a203588266f3e1d480f0e817aa92f2e7 to your computer and use it in GitHub Desktop.
To copy all files from gcloud to your local machine
gsutil -m cp -r gs://bucket/xxxxx.com /Users/xxx/Documents/MyWebSite
Once you have uploaded the files from local to gsutil, deploy
gsutil rsync -r gs://xxx_bucket_name .
gcloud app deploy
@waliahimanshu
Copy link
Author

waliahimanshu commented Sep 25, 2020

  1. steps to do changes in the angular web app.
  1. Do changes in your project file
  2. ng build to build the project
  3. npx http-server ./dist - to run the local server and see changes
  4. ng build --prod. -- build deployable files
  5. take back up before deploy

Go to cloud.google.com and click on “Go to Console”
Upon signing in, make sure you are in the “righ LPH ” project.
Go to resources - > storage
upload dist folder in both replace - resolve co

Activate cloud shell
4. gsutil rsync -r gs://life-care-pet-hospital-bucket .
5. gcloud app deploy (if fail gcloud config set project Project_ID)
6. Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment