Node.js 4.0 is the first "merged" version of Node.js and io.js, combining their powers for the good of humanity and JavaScript developers everywhere - especially those using modern EcmaScript features. The stable version now available - and can be easily deployed on Azure.
This repository contains the files required to run the Node.js 4.1.0 (Stable) on Azure Web Apps.
Simply include .deployment, deploy_node4.sh and iisnode.yml in your project. Done! Or, if you'd like to be even faster - simply click the 'Deploy to Azure' button on this page!
- Sign up for an Azure account. You can run up to 10 websites on Azure for free, so any account will do - for instance the pay-as-you-go account with free trial credits or the included accounts coming with BizSpark for startups or the GitHub Student Developer Pack.
- Click the 'Deploy to Azure' button in the title of this Readme to deploy this repository with an empty app.js. The 'Deploy to Azure' assistant will automatically create a website for you and guide you through the process. Once created, you can then use Visual Studio Online or FTP to work on your application.
- Fork or download this repository
- Make changes as you see fit - if you just want to see Node 4.1 working, you can use the included
app.js
, which will create a small HTTP server and report back the currently running version. - Once you made changes, you're ready to deploy - either using the Azure Git/GitHub/Bitbucket integration or FTP Upload, Dropbox Sync or one of the many command line tools. If you don't have sensitive code, I recommend forking this repo and hooking it up to the website - that way, you don't have to worry about deploying yourself.
.deployment
instructs Azure to run deploy.cmd as the deployment commanddeploy.cmd
runs the usual Azure Websites deployment for Node Apps, but also downloads the latest version of io.js - saving it toD:\home\site\bin\node4
. Folders are created if necessary and older versions of io.js overwritten.iisnode.yml
finally tells Azure Websites to use the just downloaded node.exe as Node binary.app.js
is entirely optional and simply spits out the installed version of Node.js. It's only included to "prove" that Node 4.1 is running, but you should most likely replace it with your own app.js/server.js.
- Copyright (c) Microsoft Corporation
- Released under the MIT License (MIT)
- Please see LICENSE for more information.