small organization, different port
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Parchment</title>
|
||||
<link rel="icon" href="Quill.png">
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
background-color: #6A2C1C;
|
||||
}
|
||||
|
||||
.draggable {
|
||||
-webkit-app-region: drag;
|
||||
height: 40px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="draggable"></div>
|
||||
<webview src="http://localhost:80" style="width:100vw; height:100vh;"></webview>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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