make dokku config more reliable
This commit is contained in:
parent
7cbaa1915f
commit
01183ab1bc
13
config.moon
13
config.moon
|
@ -15,8 +15,11 @@ config "docker", ->
|
||||||
|
|
||||||
postgres ->
|
postgres ->
|
||||||
backend "pgmoon"
|
backend "pgmoon"
|
||||||
host os.getenv "DB_HOST"
|
if os.getenv "DB_USER"
|
||||||
port os.getenv "DB_PORT"
|
host assert os.getenv "POSTGRESQL_PORT_5432_TCP_ADDR"
|
||||||
user os.getenv "DB_USER"
|
port assert os.getenv "POSTGRESQL_PORT_5432_TCP_PORT"
|
||||||
password os.getenv "DB_PASS"
|
user assert os.getenv "DB_USER"
|
||||||
database os.getenv "DB_NAME"
|
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