gorack
gorack copied to clipboard
Gorack a Go backed frontend webserver for Ruby's Rack apps
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/gmarikmkdir -p $GORACKPATHgit clone http://github.com/gmarik/gorack $GORACKPATHcd $GORACKPATHgo run main/gorack-server.go -config ./ruby/test/echo.ruopen http://localhost:3000
Building Gemfile
cd $GORACKPATHmake gemfile # builds to ./build/ruby/gorack-x.x.x.gem
Testing
cd $GORACKPATHgo 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 gorackgorack -config ./path/to/config.ru
ie:
gorack -config=$(dirname $(gem which gorack))/../test/echo.ruopen http://localhost:3000
TODO
- [x] fix weird zombie leaking
- [ ] improve error handling: broken IPC results in malfunction of the parent ruby process
- [ ] improve performance