Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoeti8 <ezzati.upt@gmail.com>2020-02-22 15:35:06 +0300
committerpoeti8 <ezzati.upt@gmail.com>2020-02-22 15:35:51 +0300
commit70c1267df4e9df0f8a421bef565df7ee92d7ba00 (patch)
tree261ba38a921220c0465a66706917344705c9f384 /knexfile.ts
parentbbb435d6ce59744d971a4ebdc57d6db142c7f26b (diff)
chor: make sure postgres is up before running migrations
Resolves #281.
Diffstat (limited to 'knexfile.ts')
-rw-r--r--knexfile.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/knexfile.ts b/knexfile.ts
index af17ac4..35333d3 100644
--- a/knexfile.ts
+++ b/knexfile.ts
@@ -4,8 +4,10 @@ module.exports = {
production: {
client: "postgresql",
connection: {
+ host: env.DB_HOST,
database: env.DB_NAME,
user: env.DB_USER,
+ port: env.PORT,
password: env.DB_PASSWORD
},
migrations: {