Startup fixes #449

Merged
bones7242 merged 3 commits from startup-fixes into master 2018-05-18 05:34:07 +02:00
Showing only changes of commit 968880c256 - Show all commits

View file

@ -84,15 +84,12 @@ function Server () {
const PORT = siteConfig.details.port;
// sync sequelize
createDatabaseIfNotExists()
getWalletBalance()
.then(() => {
return getWalletBalance();
})
.then(balance => {
logger.info('starting LBC balance:', balance);
})
.then(() => {
db.sequelize.sync()
})
// start the server
.then(() => {
db.sequelize.sync();
this.server.listen(PORT, () => {
logger.info(`Server is listening on PORT ${PORT}`);
});