JDBC_DATABASE_URL
This commit is contained in:
parent
520e5e34e4
commit
a484d477f4
|
@ -2,7 +2,7 @@
|
|||
:port 3000
|
||||
;; when :nrepl-port is set the application starts the nREPL server on load
|
||||
:nrepl-port 7000
|
||||
:database-url "jdbc:postgresql://localhost/commiteth?user=commiteth&password=commiteth"
|
||||
:jdbc-database-url "jdbc:postgresql://localhost/commiteth?user=commiteth&password=commiteth"
|
||||
:server-address "http://localhost:3000"
|
||||
:github-client-id "caf23d90246fa99ca545"
|
||||
:github-client-secret "e8e7a088e7769c77e9e2d87c47ef81df51080bf3"}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{:production true
|
||||
:port 3000
|
||||
:database-url "jdbc:postgresql://ec2-54-217-213-203.eu-west-1.compute.amazonaws.com:5432/d7cku33rlq0j96?user=wehpnfptnwmvwn&password=YpJoD1AmgPN4FMyQHl1FO3bWmI"
|
||||
:jdbc-database-url "jdbc:postgresql://ec2-54-217-213-203.eu-west-1.compute.amazonaws.com:5432/d7cku33rlq0j96?user=wehpnfptnwmvwn&password=YpJoD1AmgPN4FMyQHl1FO3bWmI"
|
||||
:server-address "http://commiteth.herokuapp.com"
|
||||
:github-client-id "eaf23cff7b5fbdf716a6"
|
||||
:github-client-secret "a31af857986c8385b95962c7a590033513ef24d9"}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
:port 3001
|
||||
;; when :nrepl-port is set the application starts the nREPL server on load
|
||||
:nrepl-port 7001
|
||||
:database-url "jdbc:postgresql://localhost/commiteth?user=commiteth&password=commiteth"
|
||||
:jdbc-database-url "jdbc:postgresql://localhost/commiteth?user=commiteth&password=commiteth"
|
||||
:server-address "http://localhost:3000"
|
||||
:github-client-id "caf23d90246fa99ca545"
|
||||
:github-client-secret "e8e7a088e7769c77e9e2d87c47ef81df51080bf3"}
|
||||
|
|
|
@ -53,7 +53,7 @@ repl-server
|
|||
(mount/start
|
||||
#'commiteth.config/env
|
||||
#'commiteth.db.core/*db*)
|
||||
(migrations/migrate args (select-keys env [:database-url]))
|
||||
(migrations/migrate args (select-keys env [:jdbc-database-url]))
|
||||
(System/exit 0))
|
||||
:else
|
||||
(start-app args)))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
PreparedStatement]))
|
||||
|
||||
(defstate ^:dynamic *db*
|
||||
:start (conman/connect! {:jdbc-url (env :database-url)})
|
||||
:start (conman/connect! {:jdbc-url (env :jdbc-database-url)})
|
||||
:stop (conman/disconnect! *db*))
|
||||
|
||||
(conman/bind-connection *db* "sql/queries.sql")
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(mount/start
|
||||
#'commiteth.config/env
|
||||
#'commiteth.db.core/*db*)
|
||||
(migrations/migrate ["migrate"] (select-keys env [:database-url]))
|
||||
(migrations/migrate ["migrate"] (select-keys env [:jdbc-database-url]))
|
||||
(f)))
|
||||
|
||||
(deftest test-users
|
||||
|
|
Loading…
Reference in New Issue