mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Restructure docker image so relative paths in code work (#30)
This commit is contained in:
@@ -34,7 +34,7 @@ export const BONOB_ACCESS_TOKEN_HEADER = "bonob-access-token";
|
||||
|
||||
const icon = (name: string) =>
|
||||
fs
|
||||
.readFileSync(path.resolve(".", "web", "icons", name))
|
||||
.readFileSync(path.resolve(__dirname, "..", "web", "icons", name))
|
||||
.toString();
|
||||
|
||||
export type Icon = { svg: string; size: number };
|
||||
@@ -110,7 +110,7 @@ function server(
|
||||
app.engine("eta", Eta.renderFile);
|
||||
|
||||
app.set("view engine", "eta");
|
||||
app.set("views", "./web/views");
|
||||
app.set("views", path.resolve(__dirname, "..", "web", "views"));
|
||||
|
||||
const langFor = (req: Request) => {
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user