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