Add hook which gets called once n8n is ready

This commit is contained in:
Jan Oberhauser 2020-09-17 21:26:34 +02:00
parent cfe3f22204
commit 690e76e187

View file

@ -1890,5 +1890,7 @@ export async function start(): Promise<void> {
const versions = await GenericHelpers.getVersions();
console.log(`n8n ready on ${ADDRESS}, port ${PORT}`);
console.log(`Version: ${versions.cli}`);
await app.externalHooks.run('n8n.ready', []);
});
}