(ns shouter.models.queries
  (:require [yesql.core :refer [defqueries]]))

(def spec (or (System/getenv "DATABASE_URL")
              "postgresql://localhost/shouter"))

(defqueries "queries.sql")

(ns shouter.models.queries
  (:require [yesql.core :refer [defqueries]]
            [environ.core :refer [env]]))

(def spec (:database-url env))

(defqueries "queries.sql")

Use env for db spec
Use env for db spec

ProjectFrank/shouter