Merge branch 'main' of github.com:silverbulletmd/silverbullet
This commit is contained in:
+4
-2
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user