In the first article in this series, I described how to http://www.aliyun.com/zixun/aggregation/32995.html "> Run Node.js on Windows." In the second article, I demonstrated how to use SQL Server in Node.js. That's how I learn node.js, first by making it work on Windows, and then on SQL Server. But back to my starting goal, I need to implement a sync service for Wang Tao's worktile and plan to build a prototype on Windows Azure. So the first two articles are preparatory work. In this article I will describe how to host a Node.js Web site on Windows Azure.
Deploy Node.js on Windows Azure Web site with git
Windows Azure Web site (hereinafter referred to as WAWS) is a new service launched in Microsoft's June meet Windows Azure event. It provides low-cost, built-in templates and is easy to deploy to the cloud.
I think waws is the easiest way to deploy a node.js site.
-IIS and Iisnode have been installed in the WAWS environment, so we don't have to install anything when we deploy.
-Waws supports a variety of deployment methods, including TFS, FTP, and git. For Node.js, FTP and git are simpler and faster.
-Waws offers three different expansion modes that are free, shared, and reserved. If we only need a Web site with a database, it would cost less than Windows Azure Cloud Services (hereinafter referred to as WACS).
-WAWS supports Windows Azure SQL database (hereinafter referred to as W) and MySQL.
Let's see how easy and easy it is to build a website on waws with Node.js. First, we need to create a new waws. Since I'm going to demonstrate how to use W from Node.js later in this article, we'll also create a W. Go to the Windows Azuredeveloper Portal and select Computeràweb siteàcreate with DATABASE from the New button.
Once the site is created, we go to its Control Panel and click on the set up Git Publishing link on the right.
After a few moments, Windows Azure completes the git deployment configuration. If this is the first time you've configured a git or FTP deployment on Windows Azure, you'll need to click the Reset deployment Credentials link on the control Panel to provide a username and password for your deployment.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.