|
@ -5,23 +5,23 @@ try { |
|
|
const fs = require("fs"); |
|
|
const fs = require("fs"); |
|
|
|
|
|
|
|
|
//开发
|
|
|
//开发
|
|
|
const pool = new Pool({ |
|
|
|
|
|
user: 'postgres', |
|
|
|
|
|
host: '10.8.30.32', |
|
|
|
|
|
database: 'highways4good', |
|
|
|
|
|
password: '123', |
|
|
|
|
|
port: 5432, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 测试环境
|
|
|
|
|
|
// const pool = new Pool({
|
|
|
// const pool = new Pool({
|
|
|
// user: 'highwayadmin',
|
|
|
// user: 'postgres',
|
|
|
// host: '10.8.40.223',
|
|
|
// host: '10.8.30.32',
|
|
|
// database: 'highway4good',
|
|
|
// database: 'highways4good',
|
|
|
// password: 'highway123',
|
|
|
// password: '123',
|
|
|
// port: 5432,
|
|
|
// port: 5432,
|
|
|
// })
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
测试环境 |
|
|
|
|
|
const pool = new Pool({ |
|
|
|
|
|
user: 'highwayadmin', |
|
|
|
|
|
host: '10.8.40.223', |
|
|
|
|
|
database: 'highwaytest', |
|
|
|
|
|
password: 'highway123', |
|
|
|
|
|
port: 5432, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
// 商用环境
|
|
|
// 商用环境
|
|
|
// const pool = new Pool({
|
|
|
// const pool = new Pool({
|
|
|
// user: 'highwayadmin',
|
|
|
// user: 'highwayadmin',
|
|
|