fixed a syntax error smh

This commit is contained in:
2026-06-02 00:25:12 +01:00
parent 46e7394a6f
commit 0cfb3f6e60
+2 -2
View File
@@ -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)
})