Skip to content

Commit

Permalink
Change the default port for the development servers
Browse files Browse the repository at this point in the history
5000 is used by Control Center on macOS, so this will likely annoy
at least a few developers.

This is based on opencast#346, so that should be reviewed and merged first.
  • Loading branch information
JulianKniephoff committed May 7, 2024
1 parent 52411fd commit c613c2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/setupProxy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { createProxyMiddleware } = require("http-proxy-middleware");

const port = process.env.PROXY_PORT || 5000;
const port = process.env.PROXY_PORT || 5001;

module.exports = function (app) {
app.use(
Expand Down
2 changes: 1 addition & 1 deletion proxyServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const requestDigest = require('request-digest');
const urlParser = require('url-parse');

const app = express();
const port = process.env.PORT || 5000;
const port = process.env.PORT || 5001;

// Get values of proxy host, username and password from npm command
let args = process.argv,
Expand Down
2 changes: 1 addition & 1 deletion staticServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require("path");
const express = require("express");

const app = express();
const port = process.env.PORT || 5000;
const port = process.env.PORT || 5001;

app.get("/*", express.static(path.join(__dirname, "test/app/GET")));

Expand Down

0 comments on commit c613c2e

Please sign in to comment.