Georges Jentgen
IT Developer @ KNEIP
     @polysign
Deploying a Rails Application
       with Capistrano
The easy way
The easy way
 simple, to single
The easy way
 simple, to single

 migrate if needed
The easy way
 simple, to single

 migrate if needed

     restart?
The easy way
 simple, to single

 migrate if needed

      restart?

 hope for the best!
Getting ugly
Getting ugly
deploying to multiple servers
Getting ugly
deploying to multiple servers

   application and workers
Getting ugly
deploying to multiple servers

   application and workers

     hope for the best!
Pretty solution
Pretty solution
     stages
Pretty solution
                  stages
   Production              Test
   Environment:       Environment:
    Production         Testing

   Roles:             Roles:
    :web => svr1       :web => tst1
    :app => svr2       :app => tst1
    :db => db1         :db => db2
Pretty solution
                  stages
   Production              Test
   Environment:
                  hosts
                      Environment:
    Production         Testing

   Roles:             Roles:
    :web => svr1       :web => tst1
    :app => svr2       :app => tst1
    :db => db1         :db => db2
Pretty solution
                  stages
   Production              Test
   Environment:
                  hosts
                      Environment:
    Production         Testing

   Roles:      roles => tst1
    :web => svr1
                      Roles:
                   :web
    :app => svr2       :app => tst1
    :db => db1         :db => db2
Pretty solution
                  stages
   Production              Test
   Environment:
                  hosts
                      Environment:
    Production         Testing

   Roles:      roles => tst1
    :web => svr1
                      Roles:
                   :web
    :app => svr2       :app => tst1
    :db => db1
              recipes
                       :db => db2
Pretty solution
                    stages
     Production              Test
     Environment:
                    hosts
                        Environment:
      Production         Testing

     Roles:      roles => tst1
      :web => svr1
                        Roles:
                     :web
      :app => svr2       :app => tst1
      :db => db1
                recipes
                         :db => db2




 deploy once, and for all
Where to go
Where to go
not only for ruby (on rails)
Where to go
not only for ruby (on rails)

    deploy to the cloud
Where to go
not only for ruby (on rails)

    deploy to the cloud

deploy on Windows, really!
Make it your own
 http://capistranorb.com

Capistrano