Server Installation For Ruby From Scratch on UBUNTU
To make your vps live for your first rails applicatio is really a cakewalks for me. I am writing here some of my experience which i faced and i learned while doing so.
First There are some do’s and dont do’s. You will get all the to do on a various blogs. The common of them are
1) Choose your flavor of os and VPS.
2) Connect to your vps and install mysql-client ,passenger , ruby, ruby gems and rails
One thing that i learned from my exp. is that to compile your rubygems rather than instaling it from apt-get. It gives some eroors later.
run the command as root:
sudo apt-get update
apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev sqlite3 libsqlite3-dev
apt-get -y install libmagick9-dev
apt-get -y install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby
Some standare ruby gems( you include all your gems needed for the app)
gem install rake nokogiri hpricot builder cheat daemons json uuid rmagick sqlite3-ruby fastthread rack
sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
3) Install your apache
echo “deb http://apt.brightbox.net hardy main” > /etc/apt/sources.list.d/brightbox.list
wget -q -O – http://apt.brightbox.net/release.asc | apt-key add –
apt-get -y install libapache2-mod-passenger
4) configure your apache with passenger in the apache conf and restart your apache server
If everything is configured correctly you will see your app running.
For further study : http://ariejan.net/2007/06/20/rails-production-server-setup-and-deployment-on-ubuntudebian/
Entry filed under: RoR, Uncategorized. Tags: developer installation, guide, install mongrel, installating ruby, installation, neel, neelmani, rails installation, RoR, RUBY, ubuntu, ubuntu server installation.