Startup fixes #449
1 changed files with 4 additions and 7 deletions
11
index.js
11
index.js
|
@ -84,15 +84,12 @@ function Server () {
|
||||||
const PORT = siteConfig.details.port;
|
const PORT = siteConfig.details.port;
|
||||||
// sync sequelize
|
// sync sequelize
|
||||||
createDatabaseIfNotExists()
|
createDatabaseIfNotExists()
|
||||||
getWalletBalance()
|
.then(() => {
|
||||||
|
return getWalletBalance();
|
||||||
|
})
|
||||||
.then(balance => {
|
.then(balance => {
|
||||||
logger.info('starting LBC balance:', balance);
|
logger.info('starting LBC balance:', balance);
|
||||||
})
|
db.sequelize.sync();
|
||||||
.then(() => {
|
|
||||||
db.sequelize.sync()
|
|
||||||
})
|
|
||||||
// start the server
|
|
||||||
.then(() => {
|
|
||||||
this.server.listen(PORT, () => {
|
this.server.listen(PORT, () => {
|
||||||
logger.info(`Server is listening on PORT ${PORT}`);
|
logger.info(`Server is listening on PORT ${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue