Comments on Using Ruby On Rails With Apache2 On Debian Etch
Using Ruby On Rails With Apache2 On Debian Etch This article shows how you can install Ruby on Rails (RoR) and integrate it in Apache2 on a Debian Etch system (including a short section at the end showing how to use RoR in a web site created with ISPConfig). Ruby on Rails is a web application framework which is rapidly gaining popularity among web programmers. It aims to increase the speed and ease with which database-driven web sites can be created and offers skeleton code frameworks (scaffolding) from the outset. Applications using the RoR framework are developed using the Model-View-Controller design pattern.
6 Comment(s)
Comments
This guy seems to be a sys admin, not a Ruby developer. Rubyists almost without exception use mongrel, not fcgi, and this tutorial results in an old version of Ruby (via apt-get). To get Ruby 1.8.6
on Debian you have to compile it -
see http://www.urbanpuddle.com/articles/2007/08/17/mongrel-cluster-1-0-2-and-ruby-1-8-5
The point of the article was to show how to get RoR on apache2, not on mongrel, which is an entirely different HTTP server.
Good work! Your post/article is an excellent example of why I keep comming back to read your excellent quality content that is forever updated. Thank you!
see rails wiki post: http://wiki.rubyonrails.org/rails/pages/RailsOnDebian
"Note:
Do not install rails using apt-get! The debian repository includes a very old and broken version."
Pretty good for the apache2 part even though this is old. I 'm running
debian squeeze now. All except for the rails part. I use rvm and do not install any ruby as a root user. An article on how to use this with rvm would be nice. Keep in mind that there is also passenger and passenger gem now.
Thanks! Good job.
OG1
This recipe looks like it'll create a rails app directory where all the code and templates are owned by the www-data user, which is poor practice from a security standpoint.
gazmcghee raises concerns about the ruby version. However, the link they point to is now lacking content. In general, I've been concerned by the lack of secure download sources (ie cryptographically signed) for ruby other than those that come from the operating system vendors. There's a lot of situations where you might ignore the issue, but I would have thought the ruby community would have matured enough by now to provide such things for those who do need it.