Files: 8ff89763aa5a55ca923acb5f2228036e30440737 / config / development.js
922 bytesRaw
1 | const execSync = require('child_process').execSync |
2 | const join = require('path').join |
3 | |
4 | module.exports = { |
5 | proxy: { |
6 | port: 5000 |
7 | }, |
8 | render: { |
9 | url: { |
10 | protocol: 'http:', |
11 | hostname: 'localhost', |
12 | pathname: '/', |
13 | port: 5000 |
14 | }, |
15 | port: 6000 |
16 | }, |
17 | static: { |
18 | url: { |
19 | protocol: 'http:', |
20 | hostname: 'localhost', |
21 | pathname: '/static/', |
22 | port: 5000 |
23 | }, |
24 | root: join(__dirname, '..', 'build'), |
25 | port: 6001 |
26 | }, |
27 | api: { |
28 | url: { |
29 | protocol: 'http:', |
30 | hostname: 'localhost', |
31 | pathname: '/api/', |
32 | port: 5000 |
33 | }, |
34 | port: 6002 |
35 | }, |
36 | db: { |
37 | client: 'pg', |
38 | connection: { |
39 | host : process.platform === 'darwin' ? execSync('docker-machine ip default').toString().trim() : 'localhost', |
40 | user : 'postgres', |
41 | //password : 'postgres', |
42 | database : 'postgres' |
43 | }, |
44 | pool: { |
45 | min: 0, |
46 | max: 1 |
47 | } |
48 | } |
49 | } |
50 |
Built with git-ssb-web