我正在按照本指南在 Azure 上安装 node.js 应用程序:http: //www.windowsazure.com/en-us/develop/nodejs/tutorials/create-a-website- (mac)/#header-0
是否可以在无需实例化虚拟机的情况下运行sails.js 应用程序?
我正在按照本指南在 Azure 上安装 node.js 应用程序:http: //www.windowsazure.com/en-us/develop/nodejs/tutorials/create-a-website- (mac)/#header-0
是否可以在无需实例化虚拟机的情况下运行sails.js 应用程序?
有关部署到 Windows Azure 的新指南:
此外,正如我在上面的评论中提到的,您不必全局安装 Sails 来部署它 - 只需克隆您的应用程序,运行npm install
,然后forever start app.js
或node app.js
。有关详细信息,请参阅部署指南。
As of right now sails requires an npm install -g on the box which would require either a virtual machine or a cloud service with a startup script. The link you are showing if for a deployment model where you don't get any access to manipulate the host since there are many instances running on it.
It would be great if sails could be included inside an app by putting it in the package.json and started up from within the app.
UPDATE - This has changed since the answer was posted. @mikermcneil has an updated answer that reflects the current state.