Welcome to ClipClip!
Already a Member? Sign In
 

Capistrano & EC2 Sitting in a Tree, K I S S I N G « Niblets….Simple. Less.

source: http://niblets.wordpress.com/2007/02/12/capistrano-ec2-sitting-in-a-tree-k-i-...

clipped by chao Feb 15, 2007

capistrano ec2 s3

play with amazon's ec2

Chao

Notes by chao:

Deploying rails apps on EC2 with capistrano

  • I am using EC2 to host my soon-to-launch Quizical.net application. Its great.

    I use capistrano to manage these EC2 instances. With these tasks, I have automated many sets of EC2 commands into simple rake tasks.

    For instance, to launch an instance, I can type…

    rake ec2:run id=ami-61a54008

    . ..and a minute or two later I have a new instance running.

    Then to install my rails app, I type…

    cap initial_install

    …which

    • patches this instance with things I need;
    • starts my litespeed web server;
    • installs my app from subversion;
    • creates my databases;
    • writes my database.yaml
    • runs my migrations
    • imports my database from S3
    • restarts my server

    So in a few minutes, I’ve got my app running on a newly commissioned server! Awesome.

 

Comments

User3

taashutosh 384 days later

Hi, Thanks can you elaborate, I am facing problem Net::SSH::AuthenticationException problem. It would be great if can share your deploy.rb. Please help its urgent. Thanks in advance.

 

Please sign in to comment.