Merge branch 'main' of github.com:silverbulletmd/silverbullet

This commit is contained in:
Zef Hemel
2022-12-05 12:17:27 +01:00
5 changed files with 18 additions and 10 deletions
+4 -2
View File
@@ -5,11 +5,12 @@ import { AssetBundle, AssetJson } from "../plugos/asset_bundle/bundle.ts";
export function serveCommand(options: any, folder: string) {
const pagesPath = path.resolve(Deno.cwd(), folder);
const hostname = options.hostname || "0.0.0.0";
const port = options.port || 3000;
console.log(
"Going to start Silver Bullet on port",
port,
"Going to start Silver Bullet on",
`${hostname}:${port}`,
"serving pages from",
pagesPath,
"with db file",
@@ -17,6 +18,7 @@ export function serveCommand(options: any, folder: string) {
);
const httpServer = new HttpServer({
hostname,
port: port,
pagesPath: pagesPath,
dbPath: path.join(pagesPath, options.db),