File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,8 @@ function buildProdEnv(commitHash) {
206
206
DEMO_APPS_SHARED_SECRET : secrets . DEMO_APPS_SHARED_SECRET . key ,
207
207
LOOPS_SO_API_KEY : secrets . LOOPS_SO_API_KEY . api_key ,
208
208
PYROSCOPE_ENDPOINT : 'http://monitoring.int.cord.com:4040' ,
209
+ IGNORE_ADMIN_SERVER_WORKER : false ,
210
+ IGNORE_CONSOLE_SERVER_WORKER : false ,
209
211
} ;
210
212
}
211
213
Original file line number Diff line number Diff line change @@ -233,4 +233,10 @@ export default magicEnv(process.env, {
233
233
234
234
// loops.so for sending newletters
235
235
LOOPS_SO_API_KEY : required ,
236
+
237
+ // Make Admin Server Optional
238
+ IGNORE_ADMIN_SERVER_WORKER : optional ,
239
+
240
+ // Make Admin Server Optional
241
+ IGNORE_CONSOLE_SERVER_WORKER : optional ,
236
242
} ) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ async function main() {
180
180
// -------------------------------------------------------------------------
181
181
// ADMIN
182
182
183
- if ( isSingleProcessOrMaster || workerType === 'admin' ) {
183
+ if ( ! env . IGNORE_ADMIN_SERVER_WORKER && ( isSingleProcessOrMaster || workerType === 'admin' ) ) {
184
184
// Either we are not in cluster mode, or this process is the master or an
185
185
// 'admin' worker. (If this is a worker process of a different type, we skip
186
186
// this section.)
@@ -210,7 +210,7 @@ async function main() {
210
210
// -------------------------------------------------------------------------
211
211
// CONSOLE
212
212
213
- if ( isSingleProcessOrMaster || workerType === 'console' ) {
213
+ if ( ! env . IGNORE_CONSOLE_SERVER_WORKER && ( isSingleProcessOrMaster || workerType === 'console' ) ) {
214
214
// Either we are not in cluster mode, or this process is the master or an
215
215
// 'console' worker. (If this is a worker process of a different type, we skip
216
216
// this section.)
You can’t perform that action at this time.
0 commit comments