Skip to content

Commit

Permalink
fix: docker configuration script bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruceo committed Jun 24, 2024
1 parent 6390479 commit 3b66e46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 1 addition & 8 deletions frontend/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
{
"api_address": "localhost",
"api_protocol": "http",
"api_port": 8080,
"printer": {
"address": "localhost",
"protocol": "http",
"port": 8888
},
"printer": {},
"dashboard_custom_page": null
}
6 changes: 4 additions & 2 deletions frontend/scripts/configureDockerContainer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ let config = {
"protocol": process.env.PRINTER_PROTOCOL,
"port": process.env.PRINTER_PORT
},
"dashboard_custom_page":process.env.DASHBOARD_CUSTOM_PAGE
"dashboard_custom_page": process.env.DASHBOARD_CUSTOM_PAGE ?? null
}

fs.writeFileSync("config.json", JSON.stringify(config, null, 2))
console.log("Configuration created.")


if (!prod) {
console.log(config)
}

if (fs.existsSync(WWW_PATH + "assets")) process.exit()

Expand Down

0 comments on commit 3b66e46

Please sign in to comment.