Awesome
Gorack
gorack is a Go backed frontend webserver for Ruby's Rack applications
Current state
- alpha quality
- Gem file ships with only Darwin amd64 prebuilt binary. Why? See 1.
Why
An experiment; inspired by node's nack
How To
Building from sources
export GORACKPATH=$GOPATH/src/github.com/gmarik
mkdir -p $GORACKPATH
git clone http://github.com/gmarik/gorack $GORACKPATH
cd $GORACKPATH
go run main/gorack-server.go -config ./ruby/test/echo.ru
open http://localhost:3000
Building Gemfile
cd $GORACKPATH
make gemfile # builds to ./build/ruby/gorack-x.x.x.gem
Testing
cd $GORACKPATH
go test -v .
go test -v -bench=. . # with benchmarking
Get Up And Running
NOTE: gem provides only for x86_64 OSX binary at the moment. See instructions how to build from source
gem install gorack
gorack -config ./path/to/config.ru
ie:
gorack -config=$(dirname $(gem which gorack))/../test/echo.ru
open http://localhost:3000
TODO
- fix weird zombie leaking
- improve error handling: broken IPC results in malfunction of the parent ruby process
- improve performance