mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
13 lines
352 B
TypeScript
13 lines
352 B
TypeScript
import { DittoConf } from '@ditto/conf';
|
|
import { logi } from '@soapbox/logi';
|
|
|
|
import app from '@/app.ts';
|
|
|
|
const conf = new DittoConf(Deno.env);
|
|
|
|
Deno.serve({
|
|
port: conf.port,
|
|
onListen({ hostname, port }): void {
|
|
logi({ level: 'info', ns: 'ditto.server', msg: `Listening on http://${hostname}:${port}`, hostname, port });
|
|
},
|
|
}, app.fetch);
|