Created
March 12, 2010 15:22
-
-
Save sattvik/330413 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns sgblog-runtime | |
(:import com.martiansoftware.nailgun.NGServer java.net.InetAddress) | |
(:use clojure.contrib.repl-utils)) | |
(def ngserver (NGServer. (InetAddress/getByName "localhost") 2114)) | |
(.start (Thread. ngserver)) | |
(println "Welcome to the REPL.") | |
(clojure.main/repl) | |
(.shutdown ngserver false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment