From 0cfb3f6e601f9159a7053308ad0218d8efc4d8db Mon Sep 17 00:00:00 2001 From: deadvey Date: Tue, 2 Jun 2026 00:25:12 +0100 Subject: [PATCH] fixed a syntax error smh --- src/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.js b/src/server.js index 44544b6..e682e81 100644 --- a/src/server.js +++ b/src/server.js @@ -50,7 +50,7 @@ function perform_checks() exit_flag = false required_values = ['site_admin','seperator','site_name','site_url','locale','port','cache_data','allow_signup','site_description','request_data_limit','enable_hitcount','charset','root_path','edit_account_base_url','new_post_url','signup_url','default_commenter_username','rss','atom','date_format','time_zone','css'] // Perform some standard checks: - if config.site_path.slice(-1) == "/" { // cut off a trailing / + if (config.site_path.slice(-1) == "/") { // cut off a trailing / config.site_path = config.site_path.substring(0,config.site_path.length-1); } @@ -86,6 +86,6 @@ function perform_checks() perform_checks() app.listen(config.port, () => { - console.log(`Server is running at http://localhost:${config.port} webroot: ${config.root_path}`); + console.log(`Server is running at http://localhost:${config.port}${config.site_path} webroot: ${config.root_path}`); console.log("Running in: ", __dirname) })