简体   繁体   中英

Deploy NodeJs Express App on Windows and Linux Server

I am developing a small project which contains few applications:

  • A node.js rest API
  • A node.js app that use socket.io.
  • A static app that server html js file to the client.

I am also using a MongoDb.

In few weeks, I'll have to deploy this app in production and I have some requirements that the app should be installed on windows and Linux server (Don't really know if it really matters).

I had a look at some tooling :

But cannot really find out if these tools are up to date or if there are better alternative in 2016 ?

Here are what seem to be the recommended ways that I've found:

Windows: iis-node (and this vid is helpful to get that going). Also note you'll need IIS 8x to support websockets.

Linux: PM2 to manage the process, and nginx for proxy server. This article has helpful step-by-step for Ubuntu.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM