()
| 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 | |
| 166 | export async function startServer(): Promise<void> { |
nothing calls this directly
no test coverage detected