initialize platform only when domain is available

This commit is contained in:
Girish Ramakrishnan
2017-01-09 09:24:32 -08:00
parent 588bb2df2f
commit 9e2f43c3b1
3 changed files with 6 additions and 7 deletions

View File

@@ -270,7 +270,6 @@ function start(callback) {
certificates.initialize,
cloudron.initialize, // keep this here because it reads activation state that others depend on
cloudron.configureAdmin, // keep this before cron to block heartbeats until cert is ready
platform.initialize,
taskmanager.initialize,
cron.initialize,
gHttpServer.listen.bind(gHttpServer, config.get('port'), '127.0.0.1'),
@@ -288,7 +287,6 @@ function stop(callback) {
auth.uninitialize,
cloudron.uninitialize,
taskmanager.uninitialize,
platform.uninitialize,
cron.uninitialize,
database.uninitialize,
gHttpServer.close.bind(gHttpServer),