How to serve my content with nodejs vm on google cloud

孤人 提交于 2019-12-14 02:33:23

问题


I created a nodejs virtual machine instance on google cloud (compute engine). I also created 3 mongodb instances on the compute engine. Now I pushed my local application to the google cloud repository. How do I link the app.js file to this server so it starts running the script and serving the files. I already changed the A record of my domain that I registered with godaddy so it's external ip is the same as that of the nodejs server I am running but all I am getting is this page.


回答1:


Bitnami developer here.

You need to copy your files to the remote repository, create the configuration files and after that you have to include that configuration in the configuration of Apache to serve the application. It looks like you have done most of the work, but there may be an error in one of the steps. This guide will help you to configure your application in order to access it properly.

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

I hope it helps.

Jota



来源:https://stackoverflow.com/questions/32779896/how-to-serve-my-content-with-nodejs-vm-on-google-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!