Search code examples
javascriptreactjsgoogle-cloud-platformfrontendgoogle-cloud-compute-engine

How to deploy React app to Google Cloud Vm Instance?


I have a basic hello world react app and Google cloud server in compute machine(Vm Instance).How can I deploy my react app to this server?


Solution

  • You can deploy react apps to google cloud platform with App Engine only. Follow the below steps:

    1. Creating the react app
    2. Creating the app.yaml file
    3. Creating a new Project in Google console
    4. Creating App Engine
    5. Deploying Google App Engine
    6. Deploying using Google Cloud SDK
    7. Deploying using Google Cloud Shell
    8. Configuring a Custom Domain in Google App Engine.

    Refer to this document for more detailed steps.