AdonisJS API
    Preparing search index...

    Type Alias ApplicationStates

    ApplicationStates:
        | "created"
        | "initiated"
        | "booted"
        | "warming"
        | "warmed"
        | "ready"
        | "terminated"

    Known application states.

    • 'created' Creating an application class instance sets the state to 'created'.

    • 'initiated' Calling app.init() method sets the state to 'initiated'. The rc file contents and environment variables are parsed during init phase.

    • 'booted' Calling app.boot() method sets the state to booted. The service providers are registered and booted in this state.

    • 'warming' Calling app.warmUp() method sets the state to 'warming'. The service providers start methods are called and the preload files are imported during this phase.

    • 'warmed' The app has been fully assembled. Every provider has been registered, booted and started and all the preload files have been imported.

                 This is the terminal state for an app created with the "warmup" mode.
                 Otherwise the app moves to the 'ready' state.
      
    • 'ready' Calling app.start() method sets the state to ready. The app is warmed up first and then a set of post start operations are performed inside this method.

                 The service providers shutdown and application terminating hooks are
                 called during post-start phase.
      
    • 'terminated' Calling app.terminate' method sets the state to terminated`. The service providers shutdown methods are called in this state.