Skip to content

Deploy CRMint on Google Cloud Platform from another branch than master

Pierre Dulac edited this page Dec 19, 2022 · 4 revisions

Step by step deployment

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

You are now ready to copy-paste these commands into the Cloud Shell Terminal (replacing the YOUR_USERNAME and YOUR_BRANCH variables with meaningful values):

# Double check if a Cloud Project is selected.
[ "$GOOGLE_CLOUD_PROJECT" == "" ] && echo -n 'Input a Cloud Project ID: ' && read project_id && gcloud config set project "$project_id"

# Install the command-line.
YOUR_USERNAME="..."
YOUR_BRANCH="..."
bash <(curl -Ls https://raw.githubusercontent.com/$YOUR_USERNAME/crmint/$YOUR_BRANCH/scripts/install.sh) $YOUR_BRANCH

# Create a stage definition for your environment.
crmint stages create

# Re-run the setup in case new elements are needed.
crmint cloud setup

# Ensures the database schema is up-to-date.
crmint cloud migrate

# Deploy the updated App Engine services.
crmint cloud url

Congratulations, you have deployed CRMint from a custom branch!