Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated dep version and added README

  • Loading branch information...
commit e70ed43d2b5c0ccd33c5ab7ea76d2fa89d4d6f18 1 parent 08deec7
@dedeibel authored
Showing with 32 additions and 4 deletions.
  1. +29 −0 README
  2. +1 −1  project.clj
  3. +2 −3 src/herokutest/web.clj
View
29 README
@@ -0,0 +1,29 @@
+
+ README
+
+clojure heroku game of life
+
+----------
+
+Game of life app to be run on heroku. Just
+a simple demo app.
+
+Prereq: leiningen https://github.com/technomancy/leiningen
+
+
+To run locally, simple run
+
+$ lein run -m herokutest.web 5000
+
+or
+
+$ foreman start
+
+And visit http://localhost:5000
+
+
+For more info see:
+
+http://devcenter.heroku.com/articles/clojure
+
+
View
2  project.clj
@@ -1,7 +1,7 @@
(defproject herokutest "0.0.1"
:dependencies [
[org.clojure/clojure "1.3.0"]
- [ring/ring-jetty-adapter "0.3.9"]
+ [ring/ring-jetty-adapter "1.0.1"]
[game_of_life "1.0.0-SNAPSHOT"]
]
:repositories {
View
5 src/herokutest/web.clj
@@ -42,8 +42,7 @@
)
)
-(defn -main []
- (let [port (Integer/parseInt (System/getenv "PORT"))]
- (run-jetty app {:port port})))
+(defn -main [port]
+ (run-jetty app {:port (Integer. port)}))
Please sign in to comment.
Something went wrong with that request. Please try again.