際際滷

際際滷Share a Scribd company logo
Extremely
Rails Webserving en Hosting                           evolved
                                                      solutions
Van Applicatie naar Web                               Lorem ipsum dolor sit amet, cons
                                                      ectetuer adipiscing elit. Donec
                                                      sagittis sagittis urna. Aliquam ipsum.

                                                      Nunc in leo sed ante lacinia volutpat.

                                                      Pellentesque urna diam, aliquet
                                                      non, ullamcorper ut, volutpat lacinia,
                                                      purus.




http://frank.be/ - @frank_be
http://www.openminds.be/

                                                      Zilverenberg 39 - B-9000 Gent - Belgium
                                                      Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




                               pub_openminds.indd 1                                                 11/15/06 10:53:57 AM
Applicatie serven
           Tijdens ontwikkelen                       Extremely
                                                      evolved
                                                      solutions
                                                      Lorem ipsum dolor sit amet, cons
                                                      ectetuer adipiscing elit. Donec
                                                      sagittis sagittis urna. Aliquam ipsum.

                                                      Nunc in leo sed ante lacinia volutpat.

                                                      Pellentesque urna diam, aliquet
                                                      non, ullamcorper ut, volutpat lacinia,
                                                      purus.




           Eens het af is

                                                      Zilverenberg 39 - B-9000 Gent - Belgium
                                                      Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                              Arrrrcamp Gent - 20090508
                               pub_openminds.indd 1                                                            11/15/06 10:53:5
The Rules ...
                                             Extremely
                                             evolved
                                             solutions
                                             Lorem ipsum dolor sit amet, cons
                                             ectetuer adipiscing elit. Donec
                                             sagittis sagittis urna. Aliquam ipsum.

                                             Nunc in leo sed ante lacinia volutpat.




                Rule #1
                                             Pellentesque urna diam, aliquet
                                             non, ullamcorper ut, volutpat lacinia,
                                             purus.




                                             Zilverenberg 39 - B-9000 Gent - Belgium
                                             Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                     Arrrrcamp Gent - 20090508
                      pub_openminds.indd 1                                                            11/15/06 10:53:5
Development
= development omgeving
Development = dev
        Development mode in Rails                                     Extremely
           geen caching                                               evolved
                                                                       solutions
           telkens alles herladen                                     Lorem ipsum dolor sit amet, cons




           veel debugging en logging
                                                                       ectetuer adipiscing elit. Donec
                                                                       sagittis sagittis urna. Aliquam ipsum.

                                                                       Nunc in leo sed ante lacinia volutpat.

                                                                       Pellentesque urna diam, aliquet
                                                                       non, ullamcorper ut, volutpat lacinia,
                                                                       purus.




        Niet op productie-omgeving!
        Waar wel?
           lokaal
           grotere teams: development server                          Zilverenberg 39 - B-9000 Gent - Belgium
                                                                       Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                               Arrrrcamp Gent - 20090508
                                                pub_openminds.indd 1                                                            11/15/06 10:53:5
The Rules ...
                                             Extremely
                                             evolved
                                             solutions
                                             Lorem ipsum dolor sit amet, cons
                                             ectetuer adipiscing elit. Donec
                                             sagittis sagittis urna. Aliquam ipsum.

                                             Nunc in leo sed ante lacinia volutpat.




                Rule #2
                                             Pellentesque urna diam, aliquet
                                             non, ullamcorper ut, volutpat lacinia,
                                             purus.




                                             Zilverenberg 39 - B-9000 Gent - Belgium
                                             Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                     Arrrrcamp Gent - 20090508
                      pub_openminds.indd 1                                                            11/15/06 10:53:5
First learn rule #1
Development servers
        ./script/server                                                   Extremely
                                                                           evolved
          standaard                                                       solutions
          mongrel (of webbrick) op poort 3000                             Lorem ipsum dolor sit amet, cons
                                                                           ectetuer adipiscing elit. Donec
                                                                           sagittis sagittis urna. Aliquam ipsum.




          http://127.0.0.1:3000/
                                                                           Nunc in leo sed ante lacinia volutpat.

                                                                           Pellentesque urna diam, aliquet
                                                                           non, ullamcorper ut, volutpat lacinia,
                                                                           purus.




        Nadelen?
          console open
          meerdere projecten tegelijk: bijhouden waar/wat gestart
          veel images/css/js op uw site: traag (alles via mongrel)
                                                                           Zilverenberg 39 - B-9000 Gent - Belgium
                                                                           Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                                   Arrrrcamp Gent - 20090508
                                                    pub_openminds.indd 1                                                            11/15/06 10:53:5
Development servers
        Mac: Passenger!                                      Extremely
                                                              evolved
               module voor de Apache webserver (standaard op solutions
                                                              Mac!)
          gem install passenger                                             Lorem ipsum dolor sit amet, cons
                                                                             ectetuer adipiscing elit. Donec
                                                                             sagittis sagittis urna. Aliquam ipsum.




          Passenger Prefpane: http://bit.ly/passengerprefpane
                                                                             Nunc in leo sed ante lacinia volutpat.

                                                                             Pellentesque urna diam, aliquet
                                                                             non, ullamcorper ut, volutpat lacinia,
                                                                             purus.




        Voordelen?
          Prefpane: handig
          http://projectnaam.local/ - http://anderproject.local/
          Wordt pas gestart als nodig
                                                                             Zilverenberg 39 - B-9000 Gent - Belgium
                                                                             Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                                     Arrrrcamp Gent - 20090508
                                                      pub_openminds.indd 1                                                            11/15/06 10:53:5
Development servers
                                       Extremely
                                       evolved
                                       solutions
                                       Lorem ipsum dolor sit amet, cons
                                       ectetuer adipiscing elit. Donec
                                       sagittis sagittis urna. Aliquam ipsum.

                                       Nunc in leo sed ante lacinia volutpat.

                                       Pellentesque urna diam, aliquet
                                       non, ullamcorper ut, volutpat lacinia,
                                       purus.




                                       Zilverenberg 39 - B-9000 Gent - Belgium
                                       Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                               Arrrrcamp Gent - 20090508
                pub_openminds.indd 1                                                            11/15/06 10:53:5
Production servers
        Keuze!                                           Extremely
                                                          evolved
        Mongrel                                          solutions


        Thin
                                                          Lorem ipsum dolor sit amet, cons
                                                          ectetuer adipiscing elit. Donec
                                                          sagittis sagittis urna. Aliquam ipsum.

                                                          Nunc in leo sed ante lacinia volutpat.

                                                          Pellentesque urna diam, aliquet




        Apache + Passenger
                                                          non, ullamcorper ut, volutpat lacinia,
                                                          purus.




        Nginx + Passenger
        Lighttpd + FastCGI
        Glass鍖sh (Java / Jruby)
                                                          Zilverenberg 39 - B-9000 Gent - Belgium
                                                          Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                  Arrrrcamp Gent - 20090508
                                   pub_openminds.indd 1                                                            11/15/06 10:53:5
Openminds
        Keuze!                                           Extremely
                                                          evolved
        Mongrel                                          solutions


        Thin
                                                          Lorem ipsum dolor sit amet, cons
                                                          ectetuer adipiscing elit. Donec
                                                          sagittis sagittis urna. Aliquam ipsum.

                                                          Nunc in leo sed ante lacinia volutpat.

                                                          Pellentesque urna diam, aliquet




        Apache + Passenger
                                                          non, ullamcorper ut, volutpat lacinia,
                                                          purus.




        Nginx + Passenger
        Lighttpd + FastCGI
        Glass鍖sh (Java / Jruby)
                                                          Zilverenberg 39 - B-9000 Gent - Belgium
                                                          Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                  Arrrrcamp Gent - 20090508
                                   pub_openminds.indd 1                                                            11/15/06 10:53:5
Deployment
        Deploy-watte?                                    Extremely
                                                          evolved
                                                          solutions


       
                                                          Lorem ipsum dolor sit amet, cons




           Van uw ontwikkelomgeving
                                                          ectetuer adipiscing elit. Donec
                                                          sagittis sagittis urna. Aliquam ipsum.

                                                          Nunc in leo sed ante lacinia volutpat.

                                                          Pellentesque urna diam, aliquet




       
                                                          non, ullamcorper ut, volutpat lacinia,
                                                          purus.



           Naar uw productieomgeving


        Lastig voor beginners
                                                          Zilverenberg 39 - B-9000 Gent - Belgium
                                                          Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                  Arrrrcamp Gent - 20090508
                                   pub_openminds.indd 1                                                            11/15/06 10:53:5
Problemen ...
        FTP (jaja) of scp van 鍖les                          Extremely
                                                             evolved
        database.yml                                        solutions


        migraties?
                                                             Lorem ipsum dolor sit amet, cons
                                                             ectetuer adipiscing elit. Donec
                                                             sagittis sagittis urna. Aliquam ipsum.

                                                             Nunc in leo sed ante lacinia volutpat.

                                                             Pellentesque urna diam, aliquet




        PhpMyAdmin
                                                             non, ullamcorper ut, volutpat lacinia,
                                                             purus.




        herstarten van applicatie
        help, deze versie bevat kritieke fout: rollback
                                                             Zilverenberg 39 - B-9000 Gent - Belgium
                                                             Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                     Arrrrcamp Gent - 20090508
                                      pub_openminds.indd 1                                                            11/15/06 10:53:5
Recept dat werkt
        Source-control systeem                           Extremely
                                                          evolved
                                                          solutions


       
                                                          Lorem ipsum dolor sit amet, cons




           Capistrano
                                                          ectetuer adipiscing elit. Donec
                                                          sagittis sagittis urna. Aliquam ipsum.

                                                          Nunc in leo sed ante lacinia volutpat.

                                                          Pellentesque urna diam, aliquet
                                                          non, ullamcorper ut, volutpat lacinia,
                                                          purus.




        Database migrations (eventueel 鍖xtures)
        cap deploy
                                                          Zilverenberg 39 - B-9000 Gent - Belgium
                                                          Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                  Arrrrcamp Gent - 20090508
                                   pub_openminds.indd 1                                                            11/15/06 10:53:5
SOS Piet uitsmijter
       1.Development nooit op productieomgeving
                                       Extremely
                                                            evolved
                                                            solutions
                                                            Lorem ipsum dolor sit amet, cons
                                                            ectetuer adipiscing elit. Donec




       2.http://bit.ly/passengerprefpane
                                                            sagittis sagittis urna. Aliquam ipsum.

                                                            Nunc in leo sed ante lacinia volutpat.

                                                            Pellentesque urna diam, aliquet
                                                            non, ullamcorper ut, volutpat lacinia,
                                                            purus.




       3.Productie: veek keuze, kies wijs


       4.Deployment strategie (capistrano)
                                                            Zilverenberg 39 - B-9000 Gent - Belgium
                                                            Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57




Frank Louwers                                                                                    Arrrrcamp Gent - 20090508
                                     pub_openminds.indd 1                                                            11/15/06 10:53:5
Q &A



http://鍖ickr.com/photos/mbake/399084699/

More Related Content

Rails Servers - Arrrrcamp 20090508

  • 1. Extremely Rails Webserving en Hosting evolved solutions Van Applicatie naar Web Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. http://frank.be/ - @frank_be http://www.openminds.be/ Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 pub_openminds.indd 1 11/15/06 10:53:57 AM
  • 2. Applicatie serven Tijdens ontwikkelen Extremely evolved solutions Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Eens het af is Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 3. The Rules ... Extremely evolved solutions Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Rule #1 Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 5. Development = dev Development mode in Rails Extremely geen caching evolved solutions telkens alles herladen Lorem ipsum dolor sit amet, cons veel debugging en logging ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Niet op productie-omgeving! Waar wel? lokaal grotere teams: development server Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 6. The Rules ... Extremely evolved solutions Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Rule #2 Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 8. Development servers ./script/server Extremely evolved standaard solutions mongrel (of webbrick) op poort 3000 Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. http://127.0.0.1:3000/ Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Nadelen? console open meerdere projecten tegelijk: bijhouden waar/wat gestart veel images/css/js op uw site: traag (alles via mongrel) Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 9. Development servers Mac: Passenger! Extremely evolved module voor de Apache webserver (standaard op solutions Mac!) gem install passenger Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Passenger Prefpane: http://bit.ly/passengerprefpane Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Voordelen? Prefpane: handig http://projectnaam.local/ - http://anderproject.local/ Wordt pas gestart als nodig Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 10. Development servers Extremely evolved solutions Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 11. Production servers Keuze! Extremely evolved Mongrel solutions Thin Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet Apache + Passenger non, ullamcorper ut, volutpat lacinia, purus. Nginx + Passenger Lighttpd + FastCGI Glass鍖sh (Java / Jruby) Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 12. Openminds Keuze! Extremely evolved Mongrel solutions Thin Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet Apache + Passenger non, ullamcorper ut, volutpat lacinia, purus. Nginx + Passenger Lighttpd + FastCGI Glass鍖sh (Java / Jruby) Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 13. Deployment Deploy-watte? Extremely evolved solutions Lorem ipsum dolor sit amet, cons Van uw ontwikkelomgeving ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Naar uw productieomgeving Lastig voor beginners Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 14. Problemen ... FTP (jaja) of scp van 鍖les Extremely evolved database.yml solutions migraties? Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet PhpMyAdmin non, ullamcorper ut, volutpat lacinia, purus. herstarten van applicatie help, deze versie bevat kritieke fout: rollback Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 15. Recept dat werkt Source-control systeem Extremely evolved solutions Lorem ipsum dolor sit amet, cons Capistrano ectetuer adipiscing elit. Donec sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. Database migrations (eventueel 鍖xtures) cap deploy Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5
  • 16. SOS Piet uitsmijter 1.Development nooit op productieomgeving Extremely evolved solutions Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit. Donec 2.http://bit.ly/passengerprefpane sagittis sagittis urna. Aliquam ipsum. Nunc in leo sed ante lacinia volutpat. Pellentesque urna diam, aliquet non, ullamcorper ut, volutpat lacinia, purus. 3.Productie: veek keuze, kies wijs 4.Deployment strategie (capistrano) Zilverenberg 39 - B-9000 Gent - Belgium Tel: +32 9 225 82 91 - Fax: +32 9 224 46 57 Frank Louwers Arrrrcamp Gent - 20090508 pub_openminds.indd 1 11/15/06 10:53:5

Editor's Notes

  1. Serven van je webapplicaties is nodig tijdens het ontwikkelen, en eens het af is. Dat zijn twee verschillende zaken, maar even belangrijk. Beide komen aan bod tijdens deze korte talk.
  2. Nadeel: apache neemt nogal wat geheugen in. Op oudere macs: probleem misschien.
  3. Keuze in functie van: beschikbaar geheugen, type applicatie, andere componenten (php, flv-modules, java, ...)
  4. Thin is (meestal) pak sneller dan mongrel. Apache + Passenger = zeer admin-vriendelijk. Nginx + Passenger = snel, handig, memory-vriendelijk
  5. Grootst aantal support tickets van nieuwe klanten