index-worker.hbs 398 B

123456789
  1. {{#if isTs }}import { bootstrapWorker } from '@vendure/core';{{else}}const { bootstrapWorker } = require('@vendure/core');{{/if}}
  2. {{#if isTs }}import { config } from './vendure-config';{{else}}const { config } = require('./vendure-config');{{/if}}
  3. bootstrapWorker(config)
  4. .then(worker => worker.startJobQueue())
  5. .catch(err => {
  6. // tslint:disable-next-line:no-console
  7. console.log(err);
  8. });