Want to install rails stack on a machine? Just follow these steps. It will setup a rails stack(Apache + passenger + mysql + ruby + rubygems + common gems + git) on any server(debian based) apt-get update apt-get upgrade -y apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev apt-get -y install mysql-server libmysqlclient15-dev mysql-client apt-get -y install ruby ruby1.8-dev irb ri [ Read More ]
Ever faced “terminate called after throwing an instance of ‘int’ ” error in RubyOnRails? or Specially on linux machine only not on windows. Error occurred specially when dealing with some image handling, or with attachment_fu. The cause of this error is image_science 1.1.3 . Add :processor => “Rmagick” to has_attachment options and get rid of this problem. Enjoy!!!
Now a days Apache + mod_proxy + mongrel_clusters, Lighttpd + Mongrel cluster and Nginx + mongrel cluster are well known for deploying rails applications. You can also deploy your rails application with pound(a reverse proxy, load balancer and HTTPS front-end for Web server). First you need to setup mongrel_clusters for your rails application by issuing ” mongrel_rails cluster::configure -e production [ Read More ]