log database config
This commit is contained in:
parent
01183ab1bc
commit
78bdf6eb02
10
config.moon
10
config.moon
|
@ -15,11 +15,5 @@ config "docker", ->
|
||||||
|
|
||||||
postgres ->
|
postgres ->
|
||||||
backend "pgmoon"
|
backend "pgmoon"
|
||||||
if os.getenv "DB_USER"
|
ngx.log ngx.NOTICE, "Using DATABASE_URL #{os.getenv "DATABASE_URL"}"
|
||||||
host assert os.getenv "POSTGRESQL_PORT_5432_TCP_ADDR"
|
postgresql_url os.getenv "DATABASE_URL"
|
||||||
port assert os.getenv "POSTGRESQL_PORT_5432_TCP_PORT"
|
|
||||||
user assert os.getenv "DB_USER"
|
|
||||||
password assert os.getenv "DB_PASS"
|
|
||||||
database assert os.getenv "DB_NAME"
|
|
||||||
else
|
|
||||||
postgresql_url assert os.getenv "DATABASE_URL"
|
|
||||||
|
|
Loading…
Reference in New Issue