1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Server: Perform storage checks before starting services

This commit is contained in:
Laurent Cozic 2021-11-20 15:19:25 +00:00
parent 8bebf99950
commit 16d5047379

View File

@ -288,9 +288,6 @@ async function main() {
appLogger().info('Skipped database auto-migration.');
}
appLogger().info('Starting services...');
await startServices(ctx.joplinBase.services);
appLogger().info('Performing main storage check...');
appLogger().info(await storageConnectionCheck(config().storageDriver, ctx.joplinBase.db, ctx.joplinBase.models));
@ -299,6 +296,9 @@ async function main() {
appLogger().info(await storageConnectionCheck(config().storageDriverFallback, ctx.joplinBase.db, ctx.joplinBase.models));
}
appLogger().info('Starting services...');
await startServices(ctx.joplinBase.services);
appLogger().info(`Call this for testing: \`curl ${config().apiBaseUrl}/api/ping\``);
app.listen(config().port);