ruby on rails installation on fresh ubuntu machine

Ruby On Rails Installation on fresh ubuntu machineInstallation steps are applicable to ubuntu versions interpid, karmic koala.Make necessary changes according to package manager provided by other linux operating systems in order install ruby and rails.Before getting started to installations make sure to build essential packageson fresh ubutnu machine. Ubuntu machine has built in apt-get package … Continue reading ruby on rails installation on fresh ubuntu machine

Imagemagick/ RMagick Installation on ubuntu

ImageMagick InstallationUbuntu machine has default apt-get package manager.To install imagemagick following packages needs to be installed.apt-get install imagemagick librmagick-ruby libmagickwand-devRMagick gem installgem install rmagickIf you still facing problems with gem installation, Please look that following packages are installedon your system.dpkg -l | grep libmagickcore-dev graphicsmagick-libmagick-dev-compatIf there are no packages installed then try to install then … Continue reading Imagemagick/ RMagick Installation on ubuntu

nginx passenger configuration for rails application

#user  nobody;user www-data;worker_processes  2;#error_log  logs/error.log;#error_log  logs/error.log  notice;#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {    worker_connections  1024;}http {    passenger_root /var/lib/gems/1.8/gems/passenger-2.2.8;    passenger_ruby /usr/bin/ruby1.8;    passenger_max_pool_size 3;    include       mime.types;default_type  application/octet-stream;    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '    #                  '$status $body_bytes_sent "$http_referer" '    #         … Continue reading nginx passenger configuration for rails application

Migrating an existing deployment to Heroku

It was fun -- pure unadulterated fun!! Now, I started looking at heroku since our current deployment on a linode was getting a little bulky. Our client has been complaining of 'suddenly things slowing down' and 'site not working'. The site is used at a hit rate of 36 Requests per minute and we need … Continue reading Migrating an existing deployment to Heroku

jruby rails installation on ubuntu interpid

# install mysql if you dont have already installedsudo apt-get install mysql-server mysql-client libhtml-template-perl mailx dbishell libcompress-zlib-perl mysql-doc-5.0 tinyca# install ant and jdksudo apt-get install ant sun-java6-jdk# install jrubymkdir softwarecd softwarewget http://dist.codehaus.org/jruby/jruby-bin-1.1.5.tar.gztar xvfz jruby-bin-1.1.5.tar.gzln -s jruby-1.1.5 jrubyexport PATH=$PATH:$HOME/software/jruby/bin# install the version of rails wanted by jrubyjruby -S gem install jruby-openssljruby -S gem install rails# list … Continue reading jruby rails installation on ubuntu interpid

Ruby 1.8.7 and rails installation on ubuntu interpid

Execute following commands in order to install ruby and rails.sudo apt-get install build-essentialBelow command will install all necessary packages.if you dont want any remove it from command.sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby ruby1.8-dev irb1.8 libdbd-mysql-perl libdbi-perl libmysql-ruby1.8 libmysqlclient15off libnet-daemon-perl libplrpc-perl libreadline-ruby1.8 libruby1.8 mysql-client-5.0 mysql-common mysql-server-5.0 rdoc1.8 ri1.8 ruby1.8 irb libopenssl-ruby libopenssl-ruby1.8 libterm-readkey-perl psmiscGem … Continue reading Ruby 1.8.7 and rails installation on ubuntu interpid