Screenshot, minor tweaks
parent
e3adb2284d
commit
f491b43fcc
Binary file not shown.
After Width: | Height: | Size: 1010 KiB |
|
@ -3,7 +3,7 @@
|
|||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"watch": "rm -rf .parcel-cache && parcel watch --no-hmr packages/{web,server,plugos,plugs} desktop",
|
||||
"watch": "rm -rf .parcel-cache && parcel watch --no-hmr packages/{web,server,plugos,plugs}",
|
||||
"clean": "rm -rf .parcel-cache packages/*/dist",
|
||||
"nuke": "rm -rf node_modules && npm run clean",
|
||||
"build": "parcel build packages/{web,server,plugos}",
|
||||
|
|
|
@ -236,7 +236,7 @@ export class ExpressServer {
|
|||
allPlugs = this.space.listPlugs();
|
||||
}
|
||||
await this.system.unloadAll();
|
||||
console.log("Reloading plugs");
|
||||
console.log("Loading plugs");
|
||||
for (let pageInfo of allPlugs) {
|
||||
let { text } = await this.space.readPage(pageInfo.name);
|
||||
await this.system.load(JSON.parse(text), createSandbox);
|
||||
|
@ -261,7 +261,6 @@ export class ExpressServer {
|
|||
await ensureTable(this.db);
|
||||
await ensureFTSTable(this.db, "fts");
|
||||
await this.ensureIndexPage();
|
||||
console.log("Setting up router");
|
||||
|
||||
let auth = new Authenticator(this.db);
|
||||
|
||||
|
@ -430,7 +429,10 @@ export class ExpressServer {
|
|||
|
||||
this.server = http.createServer(this.app);
|
||||
this.server.listen(this.port, () => {
|
||||
console.log(`Server listening on port ${this.port}`);
|
||||
console.log(
|
||||
`Silver Bullet is now running: http://localhost:${this.port}`
|
||||
);
|
||||
console.log("--------------");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -29,11 +29,11 @@ const port = args.port;
|
|||
const webappDistDir = realpathSync(
|
||||
`${nodeModulesDir}/node_modules/@silverbulletmd/web/dist`
|
||||
);
|
||||
console.log("Webapp dist dir", webappDistDir);
|
||||
// console.log("Webapp dist dir", webappDistDir);
|
||||
const plugDistDir = realpathSync(
|
||||
`${nodeModulesDir}/node_modules/@silverbulletmd/plugs/dist`
|
||||
);
|
||||
console.log("Builtin plug dist dir", plugDistDir);
|
||||
// console.log("Builtin plug dist dir", plugDistDir);
|
||||
|
||||
const expressServer = new ExpressServer({
|
||||
port: port,
|
||||
|
|
Loading…
Reference in New Issue