index-worker.ts 349 B

123456789101112
  1. import { bootstrapWorker } from '@vendure/core';
  2. import { devConfig } from './dev-config';
  3. bootstrapWorker(devConfig)
  4. .then(worker => worker.startJobQueue())
  5. // .then(worker => worker.startHealthCheckServer({ port: 3001 }))
  6. .catch(err => {
  7. // eslint-disable-next-line
  8. console.log(err);
  9. process.exit(1);
  10. });