其中Web服务器没有当它被部署在Heroku使Node.js应用中使用?
由你决定。
Heroku的sample Node.js application使用Express:
express
index.js
脚本instantiates快速再上listens port given by the PORT
environment variableProcfile
specifies that web dynos should run node index.js
(虽然如果Procfile
没有指定web
命令Heroku defaults to your application's start
script)根据我的经验,这将是一个共同的选择。
你的Node.js应用程序是运行在Web服务器,但是Heroku的使用亚马逊网络服务(AWS)托管的Web服务器。