Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

error: Unknown dialect undefined

Add your database configuration file as follows: 
path: config/env/production/database.js:

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,
  },
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: is javascript object oriented 
Javascript :: js regrex 
Javascript :: search query API example using react 
Javascript :: js string to num 
Javascript :: history.pushstate 
Javascript :: what does return do in javascript 
Javascript :: javascript await keyword 
Javascript :: javascript object get subset 
Javascript :: how to install react js 
Javascript :: javascript cheat sheet 
Javascript :: context api example in react 
Javascript :: number format reactjs 
Javascript :: how to identify index of nested arrays in javascriptn 
Javascript :: oops in js 
Javascript :: time difference in javascript 
Javascript :: regular expression 
Javascript :: route with parameter react not working not found 
Javascript :: js arrow function 
Javascript :: react native panresponder on click 
Javascript :: array index javascript 
Javascript :: javascript if return true false 
Javascript :: alpinejs 
Javascript :: What are "res" and "req" parameters in Express functions 
Javascript :: js embedded function 
Javascript :: nodejs date add days 
Javascript :: insert a data into mongo using express 
Javascript :: dom methods 
Javascript :: validate country wise phone code javascript 
Javascript :: Importing From Export Default Module 
Javascript :: ts base64 from file 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =