MCPcopy
hub / github.com/directus/directus / onShutdown

Function onShutdown

api/src/server.ts:149–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 }
148
149 async function onShutdown() {
150 emitter.emitAction(
151 'server.stop',
152 { server },
153 {
154 database: getDatabase(),
155 schema: null,
156 accountability: null,
157 },
158 );
159
160 if (getNodeEnv() !== 'development') {
161 logger.info('Directus shut down OK. Bye bye!');
162 }
163 }
164}
165
166export async function startServer(): Promise<void> {

Callers

nothing calls this directly

Calls 3

getNodeEnvFunction · 0.90
getDatabaseFunction · 0.85
emitActionMethod · 0.80

Tested by

no test coverage detected