Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
Google Cloud Platform now has an always-free tier that allows you to host servers without cost.
However, do note that the free tier is limited, and it is recommended to choose an appropriate machine type for your requirements.


Table of Contents

Step 1: Signup for Google Cloud Platform


Signup for the Google Cloud Platform at https://console.cloud.google.com/freetrial


Step 2: Install the Cloud SDK


Install the Cloud SDK on your PC following the instructions in https://cloud.google.com/sdk/docs/quickstarts

Info
titleImportant Note

In the Quickstart, you must complete the section "Before you begin" and "Initialize the SDK". After which, you may see the following messages.

Not setting default zone/region (this feature makes it easier to use [gcloud compute] by setting an appropriate default value for the --zone and --region flag).

See https://cloud.google.com/compute/docs/gcloud-compute section on how to set default compute region and zone manually. If you would like [gcloud init] to be able to do this for you the next time you run it, make sure the Compute Engine API is enabled for your project on the https://console.developers.google.com/apis page.

You must also enable "Google Compute Engine API" at https://console.developers.google.com/apis for the project (created automatically for you if you have none) in order to continue with the next step.


Step 3: Create a new Linux VM


Once the Cloud SDK is installed and verified to be working, create a new Linux VM using the following commands:

...

Code Block
titleOn Windows
echo "== Add swap file (required for low memory machine types eg f1-micro) =="
gcloud compute ssh %INSTANCE_NAME% --command="sudo fallocate -l 1G /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; sudo swapon -s;"


Step 4: Deploy Joget in the VM


Run the following commands to download and install Joget Enterprise Edition:

...

Press CTRL-C to stop viewing the logs.

Step 5: Add Firewall Rule for Default Apache Tomcat Port 8080


The default installation bundle runs on Apache Tomcat port 8080. Add a firewall rule to allow traffic to access the default Apache Tomcat port 8080:

...

More information available at https://cloud.google.com/compute/docs/networking#addingafirewall


Step 6: Access Joget installation


Check the external IP of the VM instance by running the command:

...