mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
import { logi } from '@soapbox/logi';
|
|
|
|
import '@/precheck.ts';
|
|
import '@/sentry.ts';
|
|
import '@/nostr-wasm.ts';
|
|
import app from '@/app.ts';
|
|
import { Conf } from '@/config.ts';
|
|
|
|
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);
|