فهرست منبع

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) => {