Deploy node.js in production

后端 未结 2 1257
夕颜
夕颜 2021-01-21 17:36

What are the best practices for deploying a nodejs application in production?

I would like to know how deploy for production Api\'s nodejs is being done

2条回答
  •  囚心锁ツ
    2021-01-21 18:12

    There are few main types of deployment that are popular today.

    1. Using platform as a service like Heroku
    2. Using a VPS like AWS, Digital Ocean etc.
    3. Using a dedicated server

    This list is in the order of growing difficulty and control. So it's easiest with PaaS but you get more control with a dedicated server - thought it gets significantly more difficult, especially when you need to scale out and build clusters.

    See this answer for more details on how to install Node on a VPS or a dedicated server:

    • how to run node js on dedicated server?

提交回复
热议问题