|
|
@ -5,23 +5,23 @@ try { |
|
|
|
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({
|
|
|
|
// user: 'highwayadmin',
|
|
|
|
// host: '10.8.40.223',
|
|
|
|
// database: 'highway4good',
|
|
|
|
// password: 'highway123',
|
|
|
|
// user: 'postgres',
|
|
|
|
// host: '10.8.30.32',
|
|
|
|
// database: 'highways4good',
|
|
|
|
// password: '123',
|
|
|
|
// port: 5432,
|
|
|
|
// })
|
|
|
|
|
|
|
|
测试环境 |
|
|
|
const pool = new Pool({ |
|
|
|
user: 'highwayadmin', |
|
|
|
host: '10.8.40.223', |
|
|
|
database: 'highwaytest', |
|
|
|
password: 'highway123', |
|
|
|
port: 5432, |
|
|
|
}) |
|
|
|
|
|
|
|
// 商用环境
|
|
|
|
// const pool = new Pool({
|
|
|
|
// user: 'highwayadmin',
|
|
|
|