From 37d6354627c9d0bb109e8c1893c0aea1834e370a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 19 Apr 2016 12:15:24 -0700 Subject: [PATCH] wait for 30 seconds for the addons to start up The platform sometimes takes time to start up (especially in 1GB droplet). This means that apps like wordpress begin auto installing and they fail since mysql has not started yet. --- src/cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloudron.js b/src/cloudron.js index edef30c1c..92c6563ea 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -102,7 +102,7 @@ function initialize(callback) { assert.strictEqual(typeof callback, 'function'); exports.events.on(exports.EVENT_CONFIGURED, addDnsRecords); - exports.events.on(exports.EVENT_FIRST_RUN, installAppBundle); + exports.events.on(exports.EVENT_FIRST_RUN, function () { setTimeout(30000, installAppBundle); }); // wait for 30sec for the addons to start up // check activation state for existing cloudrons that do not have first run file // can be removed once cloudrons have been updated