weavejester.ring-server

https://github.com/weavejester/ring-server.git

git clone 'https://github.com/weavejester/ring-server.git'

(ql:quickload :weavejester.ring-server)
45

Ring-Server

A library for starting a web server to serve a Ring handler with sensible default options and environment variable overrides.

Features

When starting in development mode (i.e. LEIN_NO_DEV is not set):

In production:

Install

Add the following dependency to your project.clj file:

[ring-server "0.5.0"]

Usage

Simple usage:

(use 'ring.server.standalone)
(serve your-handler)

You can also specify a map of options:

(serve your-handler {:port 4040})

The following options are supported:

License

Copyright © 2015 James Reeves

Distributed under the Eclipse Public License, the same as Clojure.