Ignore boot of provider

Hello! How to ignore the execution of the “boot” provider method when using seed?

Are you seeding with models? Would seeding using bulk DB inserts work?

Hi @dakiesse!

If it’s your own boot method, then you can add some environment variable and then check it in boot method

SKIP_BOOT=true node ace seed

and in boot

if (!process.env.SKIP_BOOT) {
  // Runs only when skip boot is not existing or is false
}

But if it’s not your own code, then there is no way to change how it works