Skip to content

Instantly share code, notes, and snippets.

@cryptoquick
Last active May 22, 2017 19:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cryptoquick/68c8ff4652cb752af17ff7b0db478b95 to your computer and use it in GitHub Desktop.
Save cryptoquick/68c8ff4652cb752af17ff7b0db478b95 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Variables
PROJECT="your-google-project-name"
gcloud config set project $PROJECT
# Upload to Bucket
# Comment these out once used, because changes to these happen rarely
gsutil cp startup.sh gs://$PROJECT/scripts/meteor_startup.sh
gsutil cp nginx.conf gs://$PROJECT/config/nginx.conf
gsutil cp ../app-secure/app.pem gs://$PROJECT/secure/app.pem
gsutil cp ../app-secure/app.key gs://$PROJECT/secure/app.key
# Upload app code bundle
gsutil cp ../app-build/* gs://$PROJECT/bundle/app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment