File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ Helpers:
73
73
Set the following ENV VARS:
74
74
75
75
``` bash
76
+ PG_META_HOST=" 0.0.0.0"
76
77
PG_META_PORT=8080
77
78
PG_META_DB_HOST=" postgres"
78
79
PG_META_DB_NAME=" postgres"
Original file line number Diff line number Diff line change 6
6
GENERATE_TYPES ,
7
7
GENERATE_TYPES_INCLUDED_SCHEMAS ,
8
8
PG_CONNECTION ,
9
+ PG_META_HOST ,
9
10
PG_META_PORT ,
10
11
PG_META_REQ_HEADER ,
11
12
} from './constants'
@@ -106,11 +107,11 @@ if (EXPORT_DOCS) {
106
107
} ) ( )
107
108
} else {
108
109
app . ready ( ( ) => {
109
- app . listen ( PG_META_PORT , '0.0.0.0' , ( ) => {
110
+ app . listen ( PG_META_PORT , PG_META_HOST , ( ) => {
110
111
app . log . info ( `App started on port ${ PG_META_PORT } ` )
111
112
const adminApp = buildAdminApp ( { logger } )
112
113
const adminPort = PG_META_PORT + 1
113
- adminApp . listen ( adminPort , '0.0.0.0' , ( ) => {
114
+ adminApp . listen ( adminPort , PG_META_HOST , ( ) => {
114
115
adminApp . log . info ( `Admin App started on port ${ adminPort } ` )
115
116
} )
116
117
} )
Original file line number Diff line number Diff line change
1
+ export const PG_META_HOST = process . env . PG_META_HOST || '0.0.0.0'
1
2
export const PG_META_PORT = Number ( process . env . PG_META_PORT || 1337 )
2
3
export const CRYPTO_KEY = process . env . CRYPTO_KEY || 'SAMPLE_KEY'
3
4
You can’t perform that action at this time.
0 commit comments