Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2014 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9667520 to your computer and use it in GitHub Desktop.
Save anonymous/9667520 to your computer and use it in GitHub Desktop.
attempting to start server
kingdom@kingdom ~/cosmos/picture-gallery$ lein repl ‹ruby-head›
nREPL server started on port 60350 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Welcome child... System Online.
user=> (in-ns 'picture-gallery.repl)
#<Namespace picture-gallery.repl>
picture-gallery.repl=> (start-server)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: start-server in this context, compiling:(/private/var/folders/ky/bhzt8hvn287b1j9gfn1d5tjw0000gn/T/form-init9007094873746684752.clj:1:1)
picture-gallery.repl=>
(ns picture-gallery.handler
(:require [compojure.route :as route]
[compojure.core :refer [defroutes]]
[noir.util.middleware :as noir-middleware]
[picture-gallery.routes.home :refer [home-routes]]))
(defroutes app-routes
(GET "/" [] "Hello World")
(route/resources "/")
(route/not-found "Not Found"))
(def app (noir-middleware/app-handler [home-routes app-routes]))
(defproject picture-gallery "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.5.1"]
[postgresql/postgresql "9.1-901.jdbc4"]
[org.clojure/java.jdbc "0.2.3"]
[lib-noir "0.7.6"]
[compojure "1.1.6"]
[lein-light-nrepl "0.0.9"]]
:plugins [[lein-ring "0.8.10"]]
:repl-options {:nrepl-middleware [lighttable.nrepl.handler/lighttable-ops]}
:ring {:handler picture-gallery.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring-mock "0.1.5"]]}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment