File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ function generateConfig(opts: ConfigOptions): string {
273273 lines . push ( ` .pm2('${ opts . pm2Name } ')` ) ;
274274 }
275275
276- if ( opts . backendPort && opts . backendPort !== 3000 ) {
277- lines . push ( ` .port(${ opts . backendPort } )` ) ;
276+ if ( opts . app === 'backend' ) {
277+ lines . push ( ` .port(${ opts . backendPort ?? 3000 } )` ) ;
278278 }
279279
280280 if ( opts . domain ) {
@@ -285,12 +285,15 @@ function generateConfig(opts: ConfigOptions): string {
285285 lines . push ( ' .zeroDowntime()' ) ;
286286 }
287287
288- if ( opts . healthCheckPath && opts . healthCheckPath !== '/health' ) {
289- lines . push ( ` .healthCheck('${ opts . healthCheckPath } ')` ) ;
290- } else if ( opts . healthCheckPath ) {
288+ if ( opts . healthCheckPath ) {
291289 lines . push ( ` .healthCheck('${ opts . healthCheckPath } ')` ) ;
292290 }
293291
292+ if ( opts . pkgManager ) {
293+ lines . push ( ` .pkgManager('${ opts . pkgManager } ')` ) ;
294+ }
295+
296+ lines . push ( ' .build();' ) ;
294297 lines . push ( '' ) ;
295298 return lines . join ( '\n' ) ;
296299}
You can’t perform that action at this time.
0 commit comments