0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Remove first run alert

refs #5652
This commit is contained in:
Hannah Wolfe 2015-08-26 15:10:23 +01:00
parent 4e635466bf
commit 5be781a0dc

View file

@ -27,24 +27,6 @@ var express = require('express'),
dbHash;
function doFirstRun() {
var firstRunMessage = [
'Welcome to Ghost.',
'You\'re running under the <strong>',
process.env.NODE_ENV,
'</strong>environment.',
'Your URL is set to',
'<strong>' + config.url + '</strong>.',
'See <a href="http://support.ghost.org/" target="_blank">http://support.ghost.org</a> for instructions.'
];
return api.notifications.add({notifications: [{
type: 'info',
message: firstRunMessage.join(' ')
}]}, {context: {internal: true}});
}
function initDbHashAndFirstRun() {
return api.settings.read({key: 'dbHash', context: {internal: true}}).then(function (response) {
var hash = response.settings[0].value,
@ -58,7 +40,8 @@ function initDbHashAndFirstRun() {
.then(function (response) {
dbHash = response.settings[0].value;
return dbHash;
}).then(doFirstRun);
// Use `then` here to do 'first run' actions
});
}
return dbHash;