-
Navigate to folder
cloud_run. -
We have
main.pyandrequirements.txtfor running our flask server. -
Head to GCP and enable the
Cloud Run -
Run the following command.
cd cloud_run gcloud config set run/region asia-east1 gcloud run deploy --source . cr-api
-
Navigate to folder
app_engine. -
We have here an angular project, which can also be any other framework.
-
Create an
app.yamlfile for configurations for the App Engine. -
In this
app.ymlfile we will give basic configurations likeruntime, env, service, instance_class, handlersetc. -
Runtime indicates the runtime environment of the App Engine - we will use
python39. -
Runtime can be any of the following: Go, Python, NodeJs, Java, PHP or Ruby.
-
env - stands for environment, we will use
standard. -
service - is for the name of the service in app engine, we will name it
ae-fe. -
instance_class - we will use as
F2. -
handlers will have the urls for servicing we will specify as mentioned in
app.yaml. -
Head to GCP and enable
App Engine, follow the necessary steps and complete the process. -
Run the following commands.
cd app_engine npm run build gcloud app deploy
- Go to Google Cloud Console
- Create a project if not created
- Link a billing account
- Search for
VMin the searchbar - Enable the
VMand follow necessary steps to complete it - After setting up of VM open it via browser to access the OS installed on it to perform functions
- This is like a remote machine with internet connection and everything we run needs to be setup there to be used
MIT