SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Posts
    208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running Ruby on Server

    Hey guys

    How do I go about installing ruby on my web server? I've never seen anything anywhere about this. Any type of OS I need to be running in order to use it?


    Any help is appreciated.


    Regards,
    Chris

  2. #2
    Internet Evangelist bweeb's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    525
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What type of server are you running? Linux / apache?

    I just finished setting up an apache / cpanel with a lot of floundering but it wasn't too bad.
    CEO of Site5 Web Hosting - 18 Locations around the world, 45,000+ happy customers!
    WebPub.com - Automatic WordPress Upgrades (New Startup)

  3. #3
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best production environment for Rails will be Unix based OS / Lighttpd (often called Lightty) / MySQL / Fast CGI. Let me warn you it's can be a fag to setup if you are new to this stuff (however not too bad if you know Linux fairly well). For many you need to compile Lightty, so it's worth making sure you have compiler tools at hand. Also, get the MySQL ruby bindings, it will make your apps a lot faster.

    For development systems, use an OS of your preference, Webbrick, MySQL, and if you aren't on Windows, get the MySQL ruby bindings.

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Yakima WA.
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Umm. Actually you don't want to use the ruby mysql bindings as they are slow. You can the pure C mysql-ruby driver. See other threads in this forum for installation and setup procedures that I have posted.

  5. #5
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ezmobius1
    Umm. Actually you don't want to use the ruby mysql bindings as they are slow. You can the pure C mysql-ruby driver. See other threads in this forum for installation and setup procedures that I have posted.
    You misinterpreted what I was saying...

    I said

    MySQL Ruby bindings. As in http://www.tmtm.org/en/mysql/ruby/ which are the C bindings.

    You are talking about

    Ruby MySQL, as in http://www.tmtm.org/en/ruby/mysql/README_en.html which is the Ruby implementation.

    The word binding is used is a rather loose context. What matters is which way round the Ruby and MySQL is. It's something that confuses me a lot as I can't always remember which way round they are.

  6. #6
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Yakima WA.
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your right. It's confusing. Sorry I didn't mean to jump on you or anything ;-)

  7. #7
    throw me a bone ... now bonefry's Avatar
    Join Date
    Nov 2004
    Location
    Romania
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MiiJaySung
    The best production environment for Rails will be Unix based OS / Lighttpd (often called Lightty) / MySQL / Fast CGI. Let me warn you it's can be a fag to setup if you are new to this stuff (however not too bad if you know Linux fairly well). For many you need to compile Lightty, so it's worth making sure you have compiler tools at hand. Also, get the MySQL ruby bindings, it will make your apps a lot faster.

    For development systems, use an OS of your preference, Webbrick, MySQL, and if you aren't on Windows, get the MySQL ruby bindings.
    I never used Lighttpd, but I wouldn't recommend it even if I haven't used it, simply because few hostings offer it. Apache is too strong right now, and mod_ruby is easier to setup.
    Plus, the biggest advantage of Apache: you can have mod_ruby, mod_python, mod_php, mod_perl, mod_mono, mod_jk ... all in the same server.

  8. #8
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bonefry
    I never used Lighttpd, but I wouldn't recommend it even if I haven't used it, simply because few hostings offer it. Apache is too strong right now, and mod_ruby is easier to setup.
    I'm sorry but thats a rather myopic view. Its recommended by the developers and countless others yet you happily dismiss it despite having never used it and because not many hosts have it right now (so what, there aren't exactly tons of RubyOnRails hosts yet either). And at the same time, you recommend mod_ruby which has known problems and is generally advised against?

    To the OP, the best advice has already been given, and that is to run your Rails apps in a FastCGI environment, of which Lighttpd has been proven to excel at and is used by plenty of big Rails websites and is supported by the official Rails host if you need shared hosting, and if you have dedicated, then that isn't even a problem.

    lighttpd is fast and recommended. Just ask on the Rails mailing list.

    Keep an eye on SCGI with lighttpd as well.

  9. #9
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bonefry
    I never used Lighttpd, but I wouldn't recommend it even if I haven't used it, simply because few hostings offer it. Apache is too strong right now, and mod_ruby is easier to setup.
    Plus, the biggest advantage of Apache: you can have mod_ruby, mod_python, mod_php, mod_perl, mod_mono, mod_jk ... all in the same server.
    Well, yea, there is that, however, one can also argue most hosts don't support Ruby. Anyone serious about developing web apps will have their own dedicated server, or at least VPS setup if your cheapo student like me. Anyway with any experience will know that shared hosting is a real gamble and it's just not worth the risk on a commercial site. For those starting off, webrick is easy enough to setup

  10. #10
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    195
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bonefry
    I never used Lighttpd, but I wouldn't recommend it even if I haven't used it, simply because few hostings offer it. Apache is too strong right now, and mod_ruby is easier to setup.
    Plus, the biggest advantage of Apache: you can have mod_ruby, mod_python, mod_php, mod_perl, mod_mono, mod_jk ... all in the same server.
    I bet the RAM and CPU manufactures would love that!
    Set up a free Instant Arcade!!
    Find the domainname you want at ExpireWorks.com
    Free $6.95 directi account


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •