Skip to content

Instantly share code, notes, and snippets.

@dulacp
Last active July 24, 2018 10:04
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 dulacp/0b6104e3b1b09adfd1e89aacd442cb62 to your computer and use it in GitHub Desktop.
Save dulacp/0b6104e3b1b09adfd1e89aacd442cb62 to your computer and use it in GitHub Desktop.
CRMint - deploy master branch with Google Cloud Shell

Deploy CRMint on Google Cloud Platform

Step by step deployment

  1. Go to https://console.cloud.google.com
  2. Select or create your project
  3. Click "Cloud Shell" button

You are now ready to run these commands:

git clone https://github.com/google/crmint.git
cd crmint

# Configures the GCP project with the resources needed.
bin/app cloud setup

# Deploy the App Engine services.
bin/app cloud deploy

Congratulations, you have deployed CRMint!

#!/usr/bin/env bash
#
# Copyright 2018 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
CURRENT_DIR=$(pwd)
# Clones the crmint repository in the home directory.
cd "$HOME"
git clone https://github.com/google/crmint.git
cd crmint
# Switch to the dev branch
git checkout dev
# Configures the GCP project with the resources needed.
bin/app cloud setup
# Deploy the App Engine services.
bin/app cloud deploy
# Restores initial directory.
cd "$CURRENT_DIR"
#!/usr/bin/env bash
#
# Copyright 2018 Google Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
CURRENT_DIR=$(pwd)
# Clones the crmint repository in the home directory.
cd "$HOME"
git clone https://github.com/google/crmint.git
cd crmint
# Configures the GCP project with the resources needed.
bin/app cloud setup
# Deploy the App Engine services.
bin/app cloud deploy
# Restores initial directory.
cd "$CURRENT_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment