small organization, different port
This commit is contained in:
@@ -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")
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user