How to serve my content using nodejs vm in google cloud

I created an instance of the nodejs virtual machine in the Google Cloud (Computing Engine). I also created 3 instances of mongodb on a computing engine. Now I moved the local application to the Google Cloud repository. How to link the app.js file with this server so that it runs the script and serves the files. I already changed the A record of my domain that I registered with godaddy, so the external ip is the same as the nodejs server that I run, but all I get is this page. enter image description here

+1
source share
1 answer

Bitnami developer is here.

You need to copy the files to the remote repository, create the configuration files, after which you must include this configuration in the Apache configuration to serve the application. It looks like you did most of the work, but there might be a mistake at one point. This guide will help you configure the application for proper access to it.

https://wiki.bitnami.com/Applications/Bitnami_Custom_Node.js_Application

Hope this helps.

Hota

+3
source

All Articles