server is started in prod mode on heroku -> prev. rel. changes reverted

This commit is contained in:
Christian Mueller
2012-06-13 20:24:31 +02:00
parent ca9f044182
commit 4ffaf3da40
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -1,9 +1,3 @@
# This one is necessary to start the app in :dev mode, because
# I changed the default mode to the production, because AFAIK
# it's not possible to parameterize the app start on Heroku.
run:
lein run dev
server:
lein cljsbuild auto &
redis-server &
+1 -1
View File
@@ -4,7 +4,7 @@
(server/load-views "src/NoteHub/views/")
(defn -main [& m]
(let [mode (keyword (or (first m) :prod))
(let [mode (keyword (or (first m) :dev))
port (Integer. (get (System/getenv) "PORT" "8080"))]
(server/start port {:mode mode
:ns 'NoteHub})))