Skip to content

felixrieseberg/azure-node4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Node.js 4.1 on Azure

Deploy to Azure

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.

Usage

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!

Creating a Node 4.1 Website from Scratch

Option A (for quick testing and small apps)

  • 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.

Option B (for deployment workflows)

The Deployment Script in Detail

  • .deployment instructs Azure to run deploy.cmd as the deployment command
  • deploy.cmd runs the usual Azure Websites deployment for Node Apps, but also downloads the latest version of io.js - saving it to D:\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 and License

  • Copyright (c) Microsoft Corporation
  • Released under the MIT License (MIT)
  • Please see LICENSE for more information.

About

Run Node.js 4.0 on Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published