Deploy sails.js to Windows Azure Website

放肆的年华 提交于 2020-01-13 20:02:02

问题


I'm following this guide on installing a node.js application on Azure: http://www.windowsazure.com/en-us/develop/nodejs/tutorials/create-a-website-(mac)/#header-0

Is it possible to get a sails.js app running without having to instantiate a Virtual Machine?


回答1:


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.




回答2:


New guide on deploying to Windows Azure:

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

Also, as I mentioned in the comment above, you don't have to install Sails globally to deploy it-- just clone your app, run npm install, and then forever start app.js or node app.js. See the deployment guide for more info.



来源:https://stackoverflow.com/questions/17453087/deploy-sails-js-to-windows-azure-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!