[Noisebridge-announce] Rails class 9/17: Deploying Rails Apps With Capistrano

Gabe Kopley gabe at railsschool.org
Thu Sep 12 20:09:03 UTC 2013


Hi, Noisebridge! We added a new class at  7pm on September 17, 2013

Deploying Rails Apps With Capistrano

Let's use Capistrano, the conventional Ruby web app deploy script, and Phusion Passenger+nginx, an easy and mainstream Ruby server, to deploy an app to a VPS

This class requires some Rails and UNIX background.

Please be prepared by having a fresh Ubuntu 12.04 Server (or very similar) VPS provisioned.

## Free EC2 instance

If you need a VPS, you can create a free (with credit card) AWS account at [AWS Free Usage Tier](https://aws.amazon.com/free/) and launch an EC2 Micro instance for free for 1 year.

Once you've created your AWS account, log in to the [AWS Management Console](https://console.aws.amazon.com/console/home) and click on "EC2".

Then click the blue "Launch Instance" button, select the "Quick Launch Wizard" radio button, create a new key pair and save it in the `~/.ssh` directory on your local machine.  Choose the Launch Configuration labeled "Ubuntu Server 12.04.2 LTS" and select the "32-bit" radio button.

Then click "Continue" and click "Launch". You should get a message that your instance is launching.

If you get an error message "Each network interface requires either a subnet or a network interface ID.", close and open the Quick Launch Wizard, and repeat the above steps but *don't* click the "Launch" button. Instead, click "Edit Details" and then click "Save Details". Now when you click the "Launch" button it should work.

After your new instance comes up (usually takes a couple minutes), find it in the instance list and look for its hostname, eg. `ec2-54-215-216-239.us-west-1.compute.amazonaws.com`.

Then shell into your instance with a command like 

    $ ssh ubuntu at ec2-54-215-216-239.us-west-1.compute.amazonaws.com -i ~/.ssh/gabe-aws-personal.pem

(replace the key file name with whatever you named your key file)

Once you can shell into your instance, you are ready for class.

If you have trouble, please ask for help on our [Starmonkeys Google Group](https://groups.google.com/group/starmonkeys).

The tools we will use

* [Capistrano deployment script](http://www.capistranorb.com)
* [Phusion Passenger app server](https://www.phusionpassenger.com/)
* [nginx web server](http://wiki.nginx.org/Main)

I'll post a hangout link in the whiteboard at 7pm.

RSVP here: http://www.railsschool.org/l/deploying-rails-apps-with-capistrano
May The Force Be With You!

Best regards,
Rails School, http://www.railsschool.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.noisebridge.net/pipermail/noisebridge-announce/attachments/20130912/62a6edf6/attachment-0003.html>


More information about the Noisebridge-announce mailing list