2014-04-03T11:52:28.948246+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=safe-wave-7010.herokuapp.com request_id=b9e25951-744d-4dc4-b680-12a3e515b33c fwd="103.5.142.23" dyno= connect= service= status=503 bytes=
(defproject picture-gallery "0.1.0-SNAPSHOT":description "FIXME: write description":url "http://example.com/FIXME":license {:name "Eclipse Public License":url "http://www.eclipse.org/legal/epl-v10.html"}:dependencies [[org.clojure/clojure "1.5.1"][compojure "1.1.6"][hiccup "1.0.5"][ring-server "0.3.1"][postgresql/postgresql "9.1-901-1.jdbc4"][org.clojure/java.jdbc "0.2.3"][com.taoensso/timbre "3.1.6"][com.postspectacular/rotor "0.1.0"][lib-noir "0.8.1"][http-kit "2.1.12"]]:main picture-gallery.main:min-lein-version "2.0.0":plugins [[lein-ring "0.8.7"]]:ring {:handler picture-gallery.handler/app:init picture-gallery.handler/init:destroy picture-gallery.handler/destroy}:profiles{:production{:ring{:open-browser? false, :stacktraces? false, :auto-reload? false}}:dev{:dependencies [[ring-mock "0.1.5"] [ring/ring-devel "1.2.2"]]}})
web: java -jar target/picture-gallery-0.1.0-SNAPSHOT-standalone.jar
(ns picture-gallery.main
(:use picture-gallery.handler
[org.httpkit.server :only [run-server]]
[ring.middleware file-info file])
(:gen-class))
(defn -main [& [port]]
(let [port (if port (Integer/parseInt port) 5000)]
(run-server app {:port port})
(println (str "You can view the site at http://localhost:" port))))
--
You received this message because you are subscribed to the Google Groups "Compojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compojure+...@googlegroups.com.
To post to this group, send email to comp...@googlegroups.com.
Visit this group at http://groups.google.com/group/compojure.
For more options, visit https://groups.google.com/d/optout.
(defproject picture-gallery "0.1.0-SNAPSHOT":description "FIXME: write description":url "http://example.com/FIXME":license {:name "Eclipse Public License":url "http://www.eclipse.org/legal/epl-v10.html"}:dependencies [[org.clojure/clojure "1.5.1"][compojure "1.1.6"][hiccup "1.0.5"][ring-server "0.3.1"][postgresql/postgresql "9.1-901-1.jdbc4"][org.clojure/java.jdbc "0.2.3"][com.taoensso/timbre "3.1.6"][com.postspectacular/rotor "0.1.0"][lib-noir "0.8.1"][http-kit "2.1.12"]]:main picture-gallery.main:min-lein-version "2.0.0":plugins [[lein-ring "0.8.7"]]:ring {:handler picture-gallery.handler/app:init picture-gallery.handler/init:destroy picture-gallery.handler/destroy}:profiles
{:uberjar {:main picture-gallery.main, :aot :all}})
Thanks for the suggestions. 'Web Dev with clj' mentions environment variables but I am not sure how to configure those from reading either that or the heroku docs. I spent last night researching the topic and I understand it in theory, but still don't understand what I should include in my project.clj to set the PORT environment var to something that will make my heroku deployed app load and function properly. I checked the URI path with the appropriate heroku command and that showed me the same URI that's on my dashboard when I log in, so I guess that's not the prob.
Jesse
Exception in thread "main" java.lang.NumberFormatException: nullat java.lang.Integer.parseInt(Integer.java:454)at java.lang.Integer.<init>(Integer.java:677)at picture_gallery.main$_main.invoke(main.clj:9)at clojure.lang.AFn.applyToHelper(AFn.java:159)at clojure.lang.AFn.applyTo(AFn.java:151)at picture_gallery.main.main(Unknown Source)
--