mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
Increase bootstrap timeout
This commit is contained in:
parent
991551e384
commit
bf5e48c653
2
lib/private/bootstrap.js
vendored
2
lib/private/bootstrap.js
vendored
@ -19,7 +19,7 @@ module.exports = function runBootstrap(cb) {
|
|||||||
|
|
||||||
// If bootstrap takes too long, display warning message
|
// If bootstrap takes too long, display warning message
|
||||||
// (just in case user forgot to call their bootstrap's `cb`).
|
// (just in case user forgot to call their bootstrap's `cb`).
|
||||||
const timeoutMs = self.config.bootstrapTimeout || 2000;
|
const timeoutMs = self.config.bootstrapTimeout || 3500;
|
||||||
const timer = setTimeout(function bootstrapTookTooLong() {
|
const timer = setTimeout(function bootstrapTookTooLong() {
|
||||||
self.log.warn('Bootstrap is taking unusually long to execute its callback (' + timeoutMs + ' miliseconds).');
|
self.log.warn('Bootstrap is taking unusually long to execute its callback (' + timeoutMs + ' miliseconds).');
|
||||||
self.log.warn('Perhaps you forgot to call it?');
|
self.log.warn('Perhaps you forgot to call it?');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user