From ddbc94e854a559cbc1ade551b512a37b7dba5fdb Mon Sep 17 00:00:00 2001 From: lishuang Date: Fri, 5 Jun 2020 23:45:01 +0800 Subject: [PATCH] Change the port. --- config/setupProxy.js | 2 +- scripts/start.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/setupProxy.js b/config/setupProxy.js index 50b4f76..f2716ed 100644 --- a/config/setupProxy.js +++ b/config/setupProxy.js @@ -6,7 +6,7 @@ module.exports = function (app) { app.use(proxy( '/api', { - target: 'http://localhost:6020', + target: 'http://localhost:6010', changeOrigin: true, pathRewrite: { '^/api': '/api' diff --git a/scripts/start.js b/scripts/start.js index 088ea49..efc2c09 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -41,7 +41,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) { } // Tools like Cloud9 rely on this. -const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000; +const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 6015; const HOST = process.env.HOST || '0.0.0.0'; if (process.env.HOST) {