Deploying Ruby on Rails in Windows Azure using the Linux Command-Line Tools

In this blog post in two parts, I will show you how to deploy a set of Linux Virtual Machines running in Windows Azure, running the Ruby on Rails stack with a MongoDB back-end. The challenge is to do it without ever touching a Windows client machine, and using only the Linux command-line tools. Let's go! On your Linux client machine, you will need to install the Azure command-line tools. You can find a detailed tutorial there: https://www.windowsazure.com/en-us/manage/linux/other-resources/command-line-tools/ But in summary, all you need is to install Node.JS and the Windows Azure Node.JS module, using a recent version of Node (> 0.6.15). This should do it (on Ubuntu): To install Node: $ curl -O http://nodejs.org/dist/v0.8.12/node-v0.8.12.tar.gz $ tar xzf node-v0.8.12.tar.gz $ cd node-v0.8.12/ $ ./configure $ make $ sudo make install To install npm: $ curl https://npmjs.or...