(System/getenv "DATABASE_URL") is returning nil. This will happen when the system environment variable DATABASE_URL is not defined.
- Bruce On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote: I am going through this Heroku tutorial [1]https://devcenter.heroku.com/articles/clojure-web-applicati on. I am getting the following error when I try to create a table in the local Postgresql database user=> (sql/with-connection (System/getenv "DATABASE_URL") (sql/create-table :testing [:data :text])) IllegalArgumentException db-spec null is missing a required parameter clojure.java.jdbc/get-connection (jdbc.clj:192) What am I doing wrong? I also have a question at SO for a related issue: [2]http://stackoverflow.com/questions/19201133/postgresql-log-au tovacuum-launcher-started-is-hung-apparently -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at [3]http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit [4]https://groups.google.com/groups/opt_out. References 1. https://devcenter.heroku.com/articles/clojure-web-application 2. http://stackoverflow.com/questions/19201133/postgresql-log-autovacuum-launcher-started-is-hung-apparently 3. http://groups.google.com/group/clojure?hl=en 4. https://groups.google.com/groups/opt_out -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.