2

我正在按照本指南在 Azure 上安装 node.js 应用程序:http: //www.windowsazure.com/en-us/develop/nodejs/tutorials/create-a-website- (mac)/#header-0

是否可以在无需实例化虚拟机的情况下运行sails.js 应用程序?

4

2 回答 2

5

有关部署到 Windows Azure 的新指南:

https://github.com/mdrmuhaimin/sails-docs/blob/b1030c21daf885e6490e1d1f946375a5c8584e4c/Guide:Deploying-Sails-to-windows-azure-linux-vm.md

此外,正如我在上面的评论中提到的,您不必全局安装 Sails 来部署它 - 只需克隆您的应用程序,运行npm install,然后forever start app.jsnode app.js。有关详细信息,请参阅部署指南

于 2014-03-03T05:43:41.620 回答
2

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.

于 2013-07-03T18:45:28.620 回答