Merb does not work with Thin and unix sockets
Reported by Jaroslaw Zabiello | March 3rd, 2008 @ 02:02 AM | in 0.9
I do not know if it is a bug or just I do not know where could I find documentation for using Thin adapter with Merb. I would like to launch Merb with Thin adapter working as a cluster of processes using unix sockets. As I found at Thin homepage it is possible to launch Thin using syntax "
{{{
thin start -s3 --socket /tmp/thin.sock
}}}
This works for Rails, but nor for Merb. :(
{{{
merb -a thin -s3 --socket /tmp/thin.sock
/opt/local/lib/ruby/1.8/optparse.rb:1443:in `complete': invalid
option: --socket (OptionParser::InvalidOption)
}}}
Maybe it is easy to solve but I cannot find any documentation for that. I tried to ask at IRC #merb, #thin and ruby-thin mail list but nobody was able to answer my problem.
I have also general problem. How to make Merb using Thin config.yml file? The file can be generated with "thin config -C some-options" command
Comments and changes to this ticket
-
macournoyer March 3rd, 2008 @ 02:24 AM
I have plan to autoselect the correct adapter from the thin script: http://thin.lighthouseapp.com/pr...
For now you can create a Rack config file:
In your config.ru file:
Merb::BootLoader.run run Merb::Rack::Application.newthen run w/ thin using:
thin start -r config.ru -
Yehuda Katz (wycats) March 4th, 2008 @ 10:28 PM
- → State changed from new to open
- → Assigned user changed from to Ezra Zygmuntowicz
-
Ezra Zygmuntowicz March 5th, 2008 @ 12:22 AM
- → Milestone changed from to 0.9
- → State changed from open to resolved
This is already supported in merb, you just have to pass the right options:
merb -a thin -h /Users/ez/app/log/thin.sock -p 1 -c 3
that will start 3 thin unix servers with
thin.sock-1 thin.sock-2 thin.sock-3
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
