Rails System Back on Track

Posted by danp June 11, 2006 @ 10:21 PM

Hopefully you didn’t notice, but I’ve been very busy this weekend. I finally took the plunge and got all the Rails applications that run on this machine up to snuff. All applications hosted here are now deployed with Capistrano, run under Mongrel (using the mongrel_cluster plugin) with requests being handled by Apache 2.2 and proxied to Mongrel by the mod_proxy_balancer module. So far it seems to be working great. You’ll notice that the Wiki, the Manuals and the weblog are all much zippier. The machine seems to be much happier as well.

And, to cap off all this fun, the weblog has been migrated from Typo to Mephisto, the blog/CMS engine from Rails Core member Rick Olson. The feed has also been moved to FeedBurner and redirects have been put in place so your reader should make the change automatically. If not, just subscribe here.

Thanks to everyone who helped me check and test things! Trac improvements are next on my list. Stay tuned!

Posted in General | 30 comments

Comments

  1. Ezra on 11 Jun 23:19:

    Bravo!

  2. cs-support on 11 Jun 23:34:

    How about fixing IE rendering?

    Any progress yet?

  3. Joe on 11 Jun 23:48:

    Why Apache instead of Lighttpd?

  4. Peter Cooper on 11 Jun 23:53:

    Nice stuff, but what’s the rationale for the move from Typo? Just wondering. Is there a reason we shouldn’t use Typo anymore?

  5. mike on 12 Jun 00:50:

    Thank you! Any chance we could get some gorier details on your apache/mongrel setup? Perhaps this blog may not be the best forum. Speaking of the blog, is mephisto public?

  6. DGM on 12 Jun 00:59:

    As long as you fixed the ajax update bug in firefox, we’re all ok. :)

  7. DGM on 12 Jun 01:09:

    Wow, Now they’re just deleting any message that mentions the old ajax update bug

  8. DGM on 12 Jun 01:11:

    regarding the new weblog software, it’s now dangerous to hit reload as it tries to re-post the form. Couldn’t we use a redirect?

  9. DGM on 12 Jun 01:15:

    My bad, looks like there’s either a delay or a moderation effect in place. I’ll stop posting now. :)

  10. josh on 12 Jun 01:24:

    Note: Comments now have to wait for approval by a moderator. At least for the time being, until we have a more automated solution. If your comment doesn’t appear immediately, just wait a bit.

  11. rick on 12 Jun 01:55:

    Mephisto’s been public for awhile, I just haven’t had a release parade or anything. Justin Palmer and I were cranking on this for awhile, but we both got busy with other projects.

    Anyways, check it out at http://svn.techno-weenie.net/projects/mephisto/trunk/, and follow along on my blog for the latest. Just set up the db and do ‘rake db:bootstrap’ to start rocking. Word of warning: Mephisto uses Liquid templates for the views, and the tags are currently undocumented. Still working on that bit :)

  12. timurv on 12 Jun 02:27:

    What about Capistrano task for mongrel cluster setup?

  13. rick on 12 Jun 03:02:

    Here’s a cap/mongrel setup procedure using Rails Machine: “http://pastie.caboo.se/686:http://pastie.caboo.se/686. Not sure if this is what dan used or not though.

  14. Seth on 12 Jun 07:53:

    Let’s see a writeup or article on the process? I’m sure I’m not the only one who’d be interested….

  15. tonka on 12 Jun 10:01:

    Great, the weblog feels snappier, indeed.

  16. dwlt on 12 Jun 10:36:

    +1 for a write up on all this!

  17. shane on 12 Jun 13:26:

    FYI: When attempting to view the Feedburner feed, I am met with an “Application Error (Rails)” message. I have a screenshot if you would like it. I navigated to the feed by clicking on the link to it from within Google Reader.

  18. Kyle on 12 Jun 14:27:

    I’ve never understood why no one’s ever done

    validates_uniqueness_of :comment, :scope => [:user, :post]

  19. Mark on 12 Jun 17:46:

    Not sure if yer aware, but the syndication feed is down.

  20. Scott on 12 Jun 18:10:

    Looks like the Feedburner RSS feed is erroring out.

    Just figured you should know.

  21. Mark on 12 Jun 19:44:

    Also looks like the categories link on the individual posts pages are broken. on this page is links to /2006/6/11/general instead of to /general. When the broek link is clicked it brings up “Application Error (Rails)”

  22. scott on 12 Jun 19:52:

    There were (are) probably a lot of lessons learned in doing this. I too think it would be great to share them. Every time any Rails app on the net is slow and/or shows the dreaded “Application Error(Rails) page, it’s bad for the entire community. If you can keep just one of us from screwing-up our deploys, then it’s worth it! Thanks.

  23. Eric Koston on 12 Jun 21:21:

    which webserver were you using before? lighttpd + fastcgi?

  24. some commenting dude on 13 Jun 19:59:

    woo mephisto!

  25. Morgan Roderick on 14 Jun 11:04:

    For the blog, it’d be nice if there was an indication of whether or not one is seeing the entire post on the front page, or just the two first paragraphs.

    For some inspiration, check out http://www.456bereastreet.com/

    The “Continued…” link, gives the user a hint that there might be more :)

  26. Jamie Quint on 15 Jun 06:15:

    Some more info on how you created this setup would be great for those of us who are struggling with the same thing, particularly, how you got capistrano to play nice with everything.

  27. Johnpg on 15 Jun 17:38:

    I’m a big fan of mongrel, but as much as I wanted to use it, I’ve found that mod_fcgid and Apache kicks its butt.

    It seems like a well-kept secret, but mod_fcgid has been super reliable and fast for me. In particular with the latest version (that keeps n number of fcgi’s running at all times). I’ve had none of the fastcgi problems with Apache that I used to have, and my benchmark tests show performance twice that of mongrel. In fact, it’s equal to lighttpd for rails. Although lightty still slightly beats Apache on static content.

    Am I just doing something wrong? Or is there something bad I don’t know about? I trust the Rails core team are far better at this than I am. But so far mod_fcgid totally seems to be the best choice for Rails+Apache.

    I’d be really interested in any comments on this.

    Cheers, John

    http://fastcgi.coremail.cn/

  28. Iolaire McFadden on 19 Jun 17:51:

    Any chance you can change the feed to a smart feed? It appears to be an Atom feed which not all RSS readers can parse.

  29. Iolaire McFadden on 19 Jun 18:14:

    Also one last comment for the admin. The main weblog.rubyonrails.com looks very bad on IE 6, the side bar is overlaying the blog entries.

  30. Matt Todd on 03 Jul 12:26:

    For those wanting a more detailed recount of the changes made, danp went into more detail on his personal blog, found here:

    http://piece.dpiddy.net/1293f778f98c

    That links directly to the post.

    Cheers,

    M.T.