About ruby on rails, hackintosh, iphone3g and etc.

Saturday, March 7, 2009

Attachment_fu Installation

Installing Attachment_fu plugin steps as follows:

1. Install Freeimage plugin for image processing:

sudo port selfupdate

sudo port install freeimage (link)

MacPorts installation notes can be obtained from here.


2. Install ImageScience

sudo gem install -y image_science


3. Install Attachment_fu


script/plugin install http://svn.techno-weenie.net/projects/plugins/attachment_fu/

Wednesday, March 4, 2009

Mongrel_rails

To use mongrel_rails in production, you need to create a service to run in your Windows Server.

Navigate to the directory where rails app are located.

Replace (service name) including bracket with your service name .
Here is the command:

Install service:
mongrel_rails service::install -N (service name) -e (environment. e.g. production) -p (port to be used)

Remove the service:
mongrel_rails service::remove -N (service name)

That's all. Then you can configure lightttpd to point to the mongrel web app.

To start the service from command line:
net start (service name)