Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

hack2-handler-mongrel2-http

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Nemesis
Octocat-spinner-32 Setup.lhs
Octocat-spinner-32 changelog.md
Octocat-spinner-32 hack2-handler-mongrel2-http.cabal
Octocat-spinner-32 readme.md
readme.md

Serving Hack2 application with the great Mongrel2 server

  • enumerator enabled, constant memory consumption when enumerator all the way down

How to run

  • install mongrel2
  • install GHC
  • install cabal-install


cabal update
cabal install nemesis
cabal install hack2-handler-mongrel2-http
cabal install hack2-contrib

git clone https://github.com/nfjinjing/hack2-handler-mongrel2-http.git

cd hack2-handler-mongrel2-http

# load a mongrel config, for more information, see the Nemesis task file
nemesis load

# start a mongrel server, port is 6767
nemesis start

# start a hello world hack2 app using mongrel2 handler
nemesis run

now visit: http://localhost:6767, you should see a hello world page.

Monkey fix the Dependency Hell

  • add what you need into the build-depends part of hack2-handler-mongrel2-http.cabal and cabal install, this will make sure the correct version of your libraries are pre-linked with mongrel2-http.

Useful getting started resource

Something went wrong with that request. Please try again.