Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albaintor committed Sep 23, 2024
1 parent 91772f1 commit e62012b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ import {getConfigFile, writeConfigFile} from "./config.js";
import {program} from 'commander';
import cors from 'cors';
import process from 'process';
// TODO Crash on windows, to be investigated
import open from 'open';

/*import { fileURLToPath } from 'url';
import { fileURLToPath } from 'url';
try {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
try {
process.chdir(__dirname);
}
catch (err) {
const filename = import.meta.url;
if (filename)
{
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
try {
process.chdir(__dirname);
}
catch (err) {
}
}
} catch (err2) {}*/
} catch (err2) {}


let LISTEN_PORT = "8000";
Expand Down

0 comments on commit e62012b

Please sign in to comment.