0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

🐛 Add missing db username / password

Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
mathieu.brunot 2019-07-19 14:35:37 +02:00 committed by Andrey Antukh
parent 6fff307570
commit d17db88088
2 changed files with 6 additions and 1 deletions

View file

@ -36,6 +36,8 @@
{:http-server-port (lookup-env env :uxbox-http-server-port 6060)
:http-server-debug (lookup-env env :uxbox-http-server-debug true)
:http-server-cors (lookup-env env :uxbox-http-server-cors "http://localhost:3449")
:database-username (lookup-env env :uxbox-database-username nil)
:database-password (lookup-env env :uxbox-database-password nil)
:database-uri (lookup-env env :uxbox-database-uri "jdbc:postgresql://127.0.0.1/uxbox")
:media-directory (lookup-env env :uxbox-media-directory "resources/public/media")
:media-uri (lookup-env env :uxbox-media-uri "http://localhost:6060/media/")

View file

@ -32,7 +32,10 @@
(defn get-db-config
[config]
(assoc connection-defaults :jdbc-url (:database-uri config)))
(assoc connection-defaults
:username (:database-username config)
:password (:database-password config)
:jdbc-url (:database-uri config)))
(defn create-datasource
[config]