Monday, January 25, 2010

Installing a complete Ruby on Rails Server on Ubuntu

I have installed a few Rails servers using Ruby, Rails, apache, mongrel, etc. I got to a point that I got tired of following a file to do and having to monitor it. I tried passenger_stack and had problems with capistrano so eventually when I couldn't find the help I needed, I created my own fresh ubuntu linux 9.04 and newer(I think 8.04. will work as well if you really have to), based install file that automated the whole process. In order to get this running you will obviously need your install cd and preferably some knowledge of ruby, etc. Also, read the file as it requests you to get some file links for the latest stuff from relevant sites.

I usually right click on the download link and copy the link location and then change it in the script where its applicable. But, check the script if you not sure.

I hope this helps someone as its made my life a little simpler and its works for me 100%. There is also an added file which I drop into rails directory (/var/www/) and then edit the few options. When I run the file using ./filename.rb(whatever I named it.rb) it asks me the relevant questions, creates the application and the mongrel required files and sets it all up for me. Once I have edited the database and create the first controller for hobo or rails, it gives me the required screens. Then you ready to create your app without all the "copy to here" links, etc to get an app running. It also create the apache file, etc as it should be.

I offer NO WARRANTY and you should check the file before you run this in case it breaks something. you use it at your own accord.

Hopefully you can make this work for yourself. The links are:

Install a Rails server with Mongrel

Create Mongrel clusters easily

Good Luck.

No comments:

Post a Comment