mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Server: Perform storage checks before starting services
This commit is contained in:
parent
8bebf99950
commit
16d5047379
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user