Tag Archives: passenger

nginx and thin installation and configuration

Install nginx server using following command apt-get install nginxEdit nginx configuration and add server block inside html block. server {    listen       80;    server_name  boost;     root /home/sandip/rails_app/public;     location / {        proxy_set_header  X-Real-IP  $remote_addr;       … Continue reading

Posted in Ruby on Rails | Tagged , , | 2 Comments

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 – … Continue reading

Posted in Ruby on Rails | Tagged , , | 3 Comments

Migrating Acemoney onto a different server with nginx+passenger

Acemoney is a hosted application built by us i.e. Josh Software. Currently, its hosted on a linode with nginx+thin configured. The problem here is that there are 3 thin servers which consume humongous ‘stagnant’ memory. We have decided to migrate … Continue reading

Posted in Ruby on Rails | Tagged , | Leave a comment

Musings on cache-money – Part I

So, I always wanted to find a way of memcaching via ActiveRecord, without having to re-invent the wheel 😉 My investigations initially took me via CachedModel, cache_fu and finally I settled on cache-money. Seems to be *almost exactly* what I … Continue reading

Posted in Ruby on Rails | Tagged , , | 1 Comment

4 steps to install nginx with passenger

Install passenger program that will run your rails application1. sudo gem install passengerInstall nginx server with passenger enabled2. passenger-install-nginx-module it will open apt, click “Enter” to continethen select option 1 for default installthen it will askWhere do you want to … Continue reading

Posted in Ruby on Rails | Tagged , | 3 Comments

Phusion Passenger on Nginx – Internal Overview

So, working with nginx and passenger has been really simplified. There is an excellent screen cast about how exactly how to get it working. (http://www.modrails.com/videos/passenger_nginx.mov). What I was really interested in finding out was, what happens under covers. It turns … Continue reading

Posted in Ruby on Rails | Tagged , | Leave a comment