Rails Deployment Configuration Book
Posted by ezmobius Fri, 09 Dec 2005 18:31:00 GMT
EDIT: This book has been picked up by the pragmatic programmers. It will be available as a beta book pdf for download in March. Then the final printed version should be available in early summer. Thanks for all the interest and stay tuned for more announcements.
I’m thinking about writing a small sized book on rails development and production environment configuration. Sometimes it seems like every other question on the rails mailing list and on #rubyonrails is about fcgi or server setup or some issue with deploying or installing rails and friends.
I already have quite a bit of this stuff written in my notes and I have written a few detailed tutorials here on my blog as well. But I have started organizing this stuff in a high level overview and have written the first few chapters of this book already.
My question is this: Would you be interested in purchasing a book like this? It will most likely be released as a DRM Free PDF only at first unless I get a publisher interested. I have sent a proposal to the wonderful PragmaticProgrammers.com for me to write one of their Pragmatic Friday PDF’s. I hope they will take me up on it ;-)
I think this is one area of rails development that gets swept to the wayside and doesn’t get nearly enough attention. And the info that is available is fragmented and contradictory at best.
Here is a very preliminary table of contents:
- Intro to rails environments and overview of what we will cover in the book.
- Installation of your development environment on all the major platforms(OSX, Linux, BSD, Windows)
- Practical techniques for development on your own or working with other developers remotely.
- Migrations
- Production Environment Theory
- Apache/FastCGI or SCGI
- Lighttpd/FastCGI or SCGI
- Daedalus/Daemon Tools and friends for keeping your servers running no matter what.
- Switchtower
- Other Helpful Tools for Your Arsenal.
- Shared Hosting.
- VPS or Dedicated Hosting.
- Stories of Successful Rails Applications Already Running in the Real World.
- The Impact of Ajax Techniques on Your Server Load
- Code Snippets and Samples for Accomplishing Things the “Rails Way” and Making Sure You Make Sane Decisions that Will Scale Later.
- But Can Rails Scale? ;-)
- Wrapup and Discussion of High Level System Overviews.
So please leave comments about anything I might be missing that you would like to see in a book like this. And if anyone want to help out and thinks they could write a chapter or two on something they know a lot about I am all ears. And do you folks think this would be a good idea and worth spending a significant amount of my time on?
Thank you for any suggestions or comments.
Searching...





Yes. Sign me up!
I'd buy that in a second! There's so much information on getting Rails running under FastCGI spread out over so many different sources that it's hard to even know if what you're reading is the current best method. I'd love to see it all put in a well written book that describes the intricacies of setting up rails on various systems.
Fantastic idea. I think it would be very successful, especially as a Friday book.
I'd buy this! fer sure. I would also like to see a chapter on performance optimized production rails setup and how that would work in conjunction with your SVN repository etc. Rails performance tuning and where to look for bottlenecks and some tips on real world problems that you or others have had would be nice. thx.
Yep, I'd buy it. I needed some pointers on setting up some lighty stuff, and remembered that you've made a bunch of posts, so I came to your blog to see if you had any info. Just hurry up and write the book already :)
I'd be interested in a section on making rails work nicely with other development platforms like PHP. Also, maybe some thought on tools/applications that make writing/deploying rails more efficient? Not sure if there are many apps out there like TextMate or phpMyAdmin specifically for RoR but it would be great to ID them if they were.
This is a great idea. As someone that is just starting with Ruby on Rails development (used to be an ASP.NET programmer) a book like this would be greatly appreciated.
Well it looks like the pragprog guys want me to write it for them ;-) I'm honored. I just need to make sure I can commit to the time needed to write a quality book. I think i am going to do it though. I'll make an announcement when I know more.
I'd buy one for sure. Write it!
Yes! I also want two whole chapters on the mysql-ruby vs ruby-mysql naming convention screwup. Maybe then I'll remember which is which.
yes, please.
Fantastic, Ezra -- I've been waiting for something like this. Good luck!
Sign me up too! I'm especially interested in Lighttpd/FCGI with Switchtower.
Caching! Page caching: Apache and Lighttpd mod-rewrite. Cache sweepers. Dynamic content on cached pages (client side tricks, server side text replacement tricks) Action caching, Fragment caching, SQL result caching, model caching. Cache stores (DRb, memcached) Tools to measure cache effectiveness.
Tom- you got it. I already have an extensive caching chapter planned. Rick Olson(technoweenie) will be writing most of that part. We will cover all the options and tricks for getting the best performance and how to choose the right type of caching to use for a particluar circumstance.
Keep me posted on your progress with this effort. I'm especially interested in examples where a single server is hosting multiple Rails applications with Lighttpd. I've tried everything I can think of and all of the suggestions to make it work using 1.4.8, but still no success (pretty depressing since it looks like I may have to use Apache 1.3 to get things deployed).
YES! Please for the love of god do it! Even if PP doens't scoop it up, release it with a donation thingie! :) :) :) I'm sitting here now attempting to get Ruby Gems installed on a Linux VPS at Rimu, and OMG! The missing zlib library of doom is knocking at my doorstep. 2.5 hours and I've gotten NO WHERE. =( Sorry to rant here. :)
Looks like you need to fix your Redcloth install to allow/disallow for hardbreaks. Or, because I thought the whole having to hack around Redcloth was stupid, I used version 3.0.3 instead. Works great. :)
This has been a thorn in my side lately so I'd definitely be supportive of it. A Fridays release would probably be ideal.
Has anything like this been published yet? I am having the hardest time getting ROR working with Apache 2.x. WeBrick serves up my apps just fine - Apache is a different story. I just can't get it to work.
Yes folks. This book has been picked up by the Pragmatic Programmers. It will be a beta book pdf release as well as a full printed book too. I am busy writing away on this so stay tuned.
This book will be available as a beta pdf front he pragmaticprogrammers.com in March. It will try to answer all your questions about rails deployment. Lighty & Apache with fcgi or scgi and maybe even mongrel by then.
Please leave more comments about what you want to see covered. i am still open for suggestions and this book is looking to be a great missing manual ;-)
Relative performance related questions keep bubling up every week without ever getting an answer. If you could help us answer them, that would be great : - "is hoster X any good", - "is shared hosting good enough for me, or do I need a dedicated server" - "is Y Virtual Server faster than Z business shared account" etc... We need some tools, process, means to compare, to test load, ... I dream of a (set of) app(s) that we'd just have to install on every host, and poll for stats.
Thats a good idea Alain. I wonder what a good app for testing stuff like that would be? there are so many different types of performance metrics to consider. but yes I have a whole chapter for shared hosting. And then a whole chapter comparing VPS and dedicated hosting as well. And I cover how to gauge what you will need for your app and make recommendations on where to get your hosting from.
sign me up
THe book is coming along great. My co-authors are doing a bangup job on their ends and I am working as hard as I can to get this thing ready for beta. All I can say as to a timeline is before RailsCOnf!
When would this book be available. I am on shared hosting, and the issue I keep running into is it keeps wanting to put /public/ in my address space. even symlinks have not been able to re solve this.. :-(
The Pragmatic Programmers site doesn't have anything about this book on it. I thought there was going to be a pdf available in March?
Yeah I have been thrown off scchedule because I moved across the state and took a new job in March so it has pushed the book date back a little bit. Also things have been changing in the rails deployment scene with the rise of mongrel so I had to wriote new content as well and revise old already written content. A book lioke this is a lot of details and a lot of work to get right so I would rather be late then rush out something I'm not happy with. There will be an announcement soon as to pub date and all that and it will show up on prag's site once this happens.
How is the actual state of affairs?
Hey there, any news? Would like to know what's goin on ... Greetz, Tottigol
Hey there, any news? Would like to know what's goin on ... Greetz, Tottigol
hehe yes i got either! sing me up!
yes mee too!
can i order now?
we need this book . Urgent.
I am looking for suc a book very badly.
zdrowa żywność, wegetarianizm
I'd be interested in a section on making rails work nicely with other development platforms like PHP
we have to wait 2 more months???
yes..i'd buy one for sure. write it!
very good. I think/hope it would be very successful
Keep up the good work. Greetings
Ich finde Ihre Website sehr ansprechend und wünschen viel Erfolg. Gefällt mir gut. Komme bestimmt öfters mal vorbei, Gruss aus Der Pfalz
freddissimo
daniela
bramare
stampa
jewellery
vendita
Fantastic idea. I think it would be very successful, especially as a Friday book.
Fantastic idea. I think it would be very successful, especially as a Friday book. Cheers
Looks like you need to fix your Redcloth install to allow/disallow for hardbreaks. Or, because I thought the whole having to hack around Redcloth was stupid, I used version 3.0.3 instead. Works great. :)
Rails performance tuning and where to look for bottlenecks and some tips on real world problems that you or others have had would be nice. thx.
Thanks, great reading and because I'm learning (have to ;-)) this stuff quite useful.
Keeping up with the latest Web technologies is tough nowadays. Every week it seems new sites are launched that push the envelope further and further in terms of what can be accomplished using just a Web browser. But you should not forget The contents which will be able to be a design of impressing website.
Very good site!
why so long? Why so many delays?
I'm definitely looking forward to this book. Will there be any information on approaches to scaling the database?
Very interesting!
Very interesting site!
I really like this website. It`s unique and I will keep it in my mind for a long time. Good work! Greetings. Check my websites: Projektowanie stron tworzenie stron, tanie tłumaczenie pisemne tłumaczenia angielski , cudny wręcz katalog stron, stare portfolio projektowanie stron flash, bannery flash projektowanie bannerów, kolejny katalog stron www i rady dla początkujących pozycjonerów poradnik pozycjonowania.
This book must be a FUD, taking such a long to come.
I have given up on this book.
You have to be patient with such material if you're really interested in extracting some info off.
I know it's been a long time coming but the book will be out in beta in February. I have been very very busy and writing a book like this is a shitload of work. Also rails deployment has changed drastically since I first started the book and I have had to rewrite some chapters a few times.
Good site!
Good work!
great site!
Nice and useful site.
Nice and useful site.
very interesting site!
niiiice!
excellent article. and how the others say: "nice site". keep on the good work!
Very interesting website.
perfect written much usefull informations. thank you for sharing your ideas.
great site!
Great and interesting article.
very good site indeed!
it´s a very interesting site!
Very good site!
Useful site. Thanks
Good read! Thanks!
So whats about your book? have u write one and what about?
I think these blog is really useful for new comers and Excellent resource list. It´s a very interesting Blog and simple answer of many questions. Keep up the good work! Thanks it helps me a lot…
I love the blog that you have. I was wondering if you would link my blog to yours and in return I would do the same for your blog. If you want to, my site name is IreadNews and the URL is: ireadnews dot net If you want to do this just go to my blog and in one of the comments just write your blog name and the URL and I will add it to my site. Thanks, Mike
Absolutely great information – thanks for posting!
Very interesting, nice Work.
sounds good, i like to hear more in future from you. looking for your book
I still have recurrent problems with explore your site in Internet Explorer 4.0. please fix this problem
I still have recurrent problems with explore your site in Internet Explorer 4.0. please fix this problem
Thanks so very much for taking your time to create this very useful and informative site!
wow amazing, i never heard of it! good to know, thanks for the informations i want to read more of that.
Good tips. Thanks for taking the time to write it down.
Great! Your site rulez!
Hello everyone, wanna be part of some kind of community, possible here? anyone here?
yeha .. what a site
Thanks for help,thats the answer of all my questions
thanks man. can you send me (via email) more links containg our theme content or advices?
I really enjoyed reading all of your posts. It’s interesting to read ideas, and observations from someone else’s point of view… makes you think more. Keep up the good work. Greetings
Hey man, thanks for article, but I still have recurrent problems with explore your site in Internet Explorer 4.0. please fix this problem. it's not very convinient to browse your site if there are no design :(
How to include PHP using smarty tags?
Thnx for the one!
Nice job man!
You can use both include in smarty, or include_php - if you insert end script
I use psvn as my Subversion client: it’s not perfect but it’s more than good enough!
Very good idea!
Predicted values in template editing can be done through any PHP script?