Install the Google Cloud SDK CLI
You first need to install the Cloud SDK CLI as you will need it to execute the commands listed below.Create a new project on your Google Cloud Platform
To create a new project, run the following command in your terminal:[YOUR_PROJECT_ID] with a string of characters that uniquely identifies your project.
To check if your project has been successfully created, run
Create an app within your Project using App Engine
The next step is to initialize App Engine for your newly created project. This will create an app attached to the project.- ensure the billing account linked to your new project is the correct one
- enable the Cloud Build API on your project
Deploy your application
Now back to your terminal and run the following command in the Forest backend’s project directory.app.yaml config file in your admin backend directory. This file acts as a deployment descriptor for your service, it generally contains CPU, memory, network and disk resources, scaling, and other general settings including environment variables.
For a complete list of all the supported elements in this configuration file, please refer to Google Cloud Platform documentation’s app.yaml reference. We chose to keep it very simple here.
Now, you are ready to deploy, please run:
Adding environment variables
When required to add the environment variables to configure your production environment, you need to add them to theapp.yaml file of your admin backend repository. The file should look like this:
Having problems deploying? Check out troubleshooting common problems in our community.