UNPKG

zengenti-buildstartup-package

Version:

Post-build scripts to generate the startup scripts for any configured environments

15 lines (13 loc) 456 B
/* eslint-disable no-console */ var env = process.env.start || process.env.npm_config_start; var script = env ? "./server/start." + env : "./server/start"; console.log('Starting with "' + script + '.js"'); try { require(script); } catch (ex) { console.log(`Problem starting script '${script}'`); console.log( "It is possible there was no .env file included with the build that contained those parameters" ); console.log(ex); }