Deploy sails.js to Windows Azure Website

2019-05-23 14:46发布

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?

2条回答
手持菜刀,她持情操
2楼-- · 2019-05-23 15:36

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.

查看更多
Summer. ? 凉城
3楼-- · 2019-05-23 15:39

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.

查看更多
登录 后发表回答