Where do Fastboot initializers go?


#1

Mostly documenting for future travelers:

I needed to run an initializer only in FastBoot land. Rather than guard for FastBoot I want to use a FB initializer.

In an addon you can do so by adding your initializer (in my case an instance-initializer) to:

<root-of-addon>/fastboot/addon/instance-initializers/<name-of-your-initializer>

and in an application:

<root-of-app>/fastboot/instance-initializers/<name-of-your-initializer>

If you’d like to see more detail on this please referr to this EmberCLI ticket by @kratiahuja

Cheers! :beers:


#2

Right, you would put them in fastboot/instance-initializers/some-name-here.js.