Skip to content

Commit

Permalink
Added debug to figure out the set redis url.
Browse files Browse the repository at this point in the history
  • Loading branch information
cacoco committed Sep 28, 2011
1 parent aca79a3 commit 809173e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/smally_clojure/views/smally.clj
Expand Up @@ -25,14 +25,6 @@
[:title "smal.ly"]]
[:body
content]))

(defn split-redis-url [url]
"Parse the redis url from heroku, eg. redis://redistogo:207d220de51ee4e95454bb89796a6d22@filefish.redistogo.com:9883/"
)

(defn maybe-init []
"Checks the connection to initialize."
)

(defn next-val
"Looks up the next counter value in Redis"
Expand All @@ -58,6 +50,7 @@

(defn get-name [handler]
(fn [request]
(println (get (System/getenv) "REDISTOGO_URL"))
(session/put! :uri (str "http://" (get request :server-name) ":" (get request :server-port)))
(handler request)))

Expand Down

0 comments on commit 809173e

Please sign in to comment.