small organization, different port

This commit is contained in:
metacryst
2025-12-29 03:03:49 -06:00
parent 71984ddd67
commit a21e651484
5 changed files with 10 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ export default class Server {
})
}
constructor(spawnForms) {
constructor(spawnForms, port) {
const app = express();
app.use(cors({ origin: '*' }));
app.use(express.json());
@@ -100,11 +100,10 @@ export default class Server {
const server = http.createServer(app);
initWebSocket(server);
const PORT = 80;
server.listen(PORT, () => {
server.listen(port, () => {
console.log("\n")
console.log(chalk.yellow("**************Parchment****************"))
console.log(chalk.yellowBright(`Server is running on port ${PORT}: http://localhost`));
console.log(chalk.yellowBright(`Server is running on port ${port}: http://localhost`));
console.log(chalk.yellow("***************************************"))
console.log("\n")
});