thin snippets

Using thin with Vlad the Deployer

Tagged vlad, thin, git  Languages 

To get Vlad 1.2.0 to work with Thin I did the following.

First change the line where Vlad is included to this:

Vlad.load :scm => :git, :app => :thin

Now run vlad:setup:

$ rake vlad:setup
(in /Users/christian/Documents/Projects/nyhetsanka.fi)
Unable to load Vlad no such file to load -- vlad/thin
rake aborted!
Please specify the server domain via the :domain variable

(See full trace by running task with --trace)

The fix for this error:

Unable to load Vlad no such file to load -- vlad/thin

Is to run the following command:

curl -o /usr/local/lib/ruby/gems/1.8/gems/vlad-1.2.0/lib/vlad/thin.rb http://github.com/dpiddy/vlad/raw/master/lib/vlad/thin.rb

How to install thin, rack and eventmachine on Windows/Cygwin

Tagged rack, eventmachine, windows, cygwin, thin  Languages bash

There's no official Windows binary release of eventmachine for the latest version of thin (1.0.0). Thin needs at least version (0.12.2) of eventmachine, so you'll have to use the latest GitHub code (currently 0.12.3) to install thin on Windblows and CygWin:

git clone git://github.com/eventmachine/eventmachine.git
cd eventmachine
rake gem
gem install pkg/eventmachine-0.12.3.gem
gem install thin rack