mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
20 lines
327 B
JavaScript
20 lines
327 B
JavaScript
// @flow
|
|
import { RocksDB } from "@hocuspocus/extension-rocksdb";
|
|
import { Server } from "@hocuspocus/server";
|
|
|
|
const server = Server.configure({
|
|
port: process.env.PORT || 80,
|
|
|
|
async onConnect() {
|
|
console.log("🔮");
|
|
},
|
|
|
|
extensions: [
|
|
new RocksDB({
|
|
path: "./database",
|
|
}),
|
|
],
|
|
});
|
|
|
|
server.listen();
|