gorack is a Go backed frontend webserver for Ruby's Rack applications
- alpha quality
- Gem file ships with only Darwin amd64 prebuilt binary. Why? See 1.
An experiment; inspired by node's nack
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
cd $GORACKPATH
make gemfile # builds to ./build/ruby/gorack-x.x.x.gem
cd $GORACKPATH
go test -v .
go test -v -bench=. . # with benchmarking
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
- fix weird zombie leaking
- improve error handling: broken IPC results in malfunction of the parent ruby process
- improve performance