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:
7373Set the following ENV VARS:
7474
7575``` bash
76+ PG_META_HOST=" 0.0.0.0"
7677PG_META_PORT=8080
7778PG_META_DB_HOST=" postgres"
7879PG_META_DB_NAME=" postgres"
Original file line number Diff line number Diff line change 66 GENERATE_TYPES ,
77 GENERATE_TYPES_INCLUDED_SCHEMAS ,
88 PG_CONNECTION ,
9+ PG_META_HOST ,
910 PG_META_PORT ,
1011 PG_META_REQ_HEADER ,
1112} from './constants'
@@ -106,11 +107,11 @@ if (EXPORT_DOCS) {
106107 } ) ( )
107108} else {
108109 app . ready ( ( ) => {
109- app . listen ( PG_META_PORT , '0.0.0.0' , ( ) => {
110+ app . listen ( PG_META_PORT , PG_META_HOST , ( ) => {
110111 app . log . info ( `App started on port ${ PG_META_PORT } ` )
111112 const adminApp = buildAdminApp ( { logger } )
112113 const adminPort = PG_META_PORT + 1
113- adminApp . listen ( adminPort , '0.0.0.0' , ( ) => {
114+ adminApp . listen ( adminPort , PG_META_HOST , ( ) => {
114115 adminApp . log . info ( `Admin App started on port ${ adminPort } ` )
115116 } )
116117 } )
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'
12export const PG_META_PORT = Number ( process . env . PG_META_PORT || 1337 )
23export const CRYPTO_KEY = process . env . CRYPTO_KEY || 'SAMPLE_KEY'
34
You can’t perform that action at this time.
0 commit comments