Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy node js in windows server 2012

I have a Windows 2012 server and hello world node js file (Only one js file along with Node_module folder).

Now I need to deploy it to the windows server and need to run it globally.

How to do that? Please help me!

I have read more article. But confused. I installed Node app on the server. I ran it locally. It is working. But How to do it globally. (www.xxxx.com/ABC)

like image 377
sankaran Avatar asked Feb 02 '17 09:02

sankaran


1 Answers

You have two options:

  • iisnode. There are a few more configuration steps with this option, but there seems to be additional benefits.
  • allow port through Windows Firewall, the post is self explanatory.

iisnode

Some resources:

  • https://github.com/projectkudu/kudu/wiki/Using-a-custom-web.config-for-Node-apps
  • I picked up a few pointers from Hosting Node.js Applications on Windows Server 2012, Complete with Git Deployment and Remote Debugging - Part 2
like image 188
Aaron C Avatar answered Sep 22 '22 05:09

Aaron C