소스 검색

Configure frontend port

Owen Diffey 8 년 전
부모
커밋
0e1ac9d28a
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      backend/config/template.json
  2. 0 1
      backend/index.js

+ 1 - 0
backend/config/template.json

@@ -1,6 +1,7 @@
 {
 	"secret": "",
 	"domain": "",
+	"frontendPort": 80,
 	"serverDomain": "",
   	"serverPort": 8080,
   	"isDocker": true,

+ 0 - 1
backend/index.js

@@ -203,7 +203,6 @@ async.waterfall([
 		if (!config.get("isDocker")) {
 			const express = require('express');
 			const app = express();
-			app.listen(80);
 			const rootDir = __dirname.substr(0, __dirname.lastIndexOf("backend")) + "frontend\\build\\";
 
 			app.get("/*", (req, res) => {