起動メッセージを変更
This commit is contained in:
parent
f97de561ff
commit
9949516c26
3 changed files with 4 additions and 8 deletions
|
@ -11,8 +11,6 @@ axios.defaults.headers['User-Agent'] = ua;
|
|||
axios.defaults.headers['Content-Type'] = 'application/json';
|
||||
axios.defaults.validateStatus = (stat) => stat < 500;
|
||||
|
||||
console.log(`Initiailizing axios with UA ${ua}...`);
|
||||
|
||||
(async () => {
|
||||
await initDb();
|
||||
(await import('./backend/services/worker.js')).default();
|
||||
|
|
|
@ -13,9 +13,8 @@ import 'reflect-metadata';
|
|||
export default (): void => {
|
||||
const app = new Koa();
|
||||
|
||||
console.log('Misskey Tools v' + meta.version);
|
||||
|
||||
console.log('Initializing DB connection...');
|
||||
console.log(`** Misskey Tools ${meta.version} **`);
|
||||
console.log('(C) Shrimpia Network');
|
||||
|
||||
app.use(render);
|
||||
app.use(bodyParser());
|
||||
|
@ -37,8 +36,8 @@ export default (): void => {
|
|||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
|
||||
console.log(`listening port ${config.port}...`);
|
||||
console.log('App launched!');
|
||||
console.log('GET READY!');
|
||||
console.log(`Server URL >> ${config.url}`);
|
||||
|
||||
app.listen(config.port || 3000);
|
||||
};
|
||||
|
|
|
@ -23,7 +23,6 @@ export const initDb = async (force = false): Promise<Connection> => {
|
|||
return Promise.resolve(conn);
|
||||
} catch (e) {
|
||||
// noop
|
||||
console.warn('connection is not found, so create');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue