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