Update database config
This commit is contained in:
1 parent
8922670191
commit
00a61040e4
5 files changed
+114
-2
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
const parse = require("pg-connection-string").parse;
|
||||
const config = parse(process.env.DATABASE_URL);
|
||||
|
||||
module.exports = ({ env }) => ({
|
||||
connection: {
|
||||
client: "postgres",
|
||||
connection: {
|
||||
host: config.host,
|
||||
port: config.port,
|
||||
database: config.database,
|
||||
user: config.user,
|
||||
password: config.password,
|
||||
ssl: {
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
},
|
||||
debug: false,
|
||||
},
|
||||
});
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
module.exports = ({ env }) => ({
|
||||
url: env("MY_HEROKU_URL"),
|
||||
});
|
||||
Binary file not shown.
+4
-2
@@ -11,9 +11,11 @@
|
||||
},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"@strapi/strapi": "4.0.4",
|
||||
"@strapi/plugin-users-permissions": "4.0.4",
|
||||
"@strapi/plugin-i18n": "4.0.4",
|
||||
"@strapi/plugin-users-permissions": "4.0.4",
|
||||
"@strapi/strapi": "4.0.4",
|
||||
"pg": "^8.7.1",
|
||||
"pg-connection-string": "^2.5.0",
|
||||
"sqlite3": "5.0.2"
|
||||
},
|
||||
"author": {
|
||||
|
||||
Reference in new issue
Block a user