changed ports
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@ RUN npm install
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 3001
|
||||||
CMD ["node", "./src/OSCWebServer/server.js"]
|
CMD ["node", "./src/OSCWebServer/server.js"]
|
||||||
+1
-1
@@ -11,4 +11,4 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.server
|
dockerfile: Dockerfile.server
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "3001:3001"
|
||||||
@@ -8,7 +8,7 @@ import WebSocket from "ws";
|
|||||||
const x32IP = process.env.X32_IP;
|
const x32IP = process.env.X32_IP;
|
||||||
const x32Port = Number(process.env.X32_PORT);
|
const x32Port = Number(process.env.X32_PORT);
|
||||||
|
|
||||||
const OSC_WEB_SOCKET_PORT = 8080;
|
const OSC_WEB_SOCKET_PORT = 3001;
|
||||||
|
|
||||||
// OSC Setup
|
// OSC Setup
|
||||||
const udpPort = new osc.UDPPort({
|
const udpPort = new osc.UDPPort({
|
||||||
|
|||||||
+3
-1
@@ -8,12 +8,14 @@ import MainMix from "@/app/components/MainMix";
|
|||||||
// initialize global websocket connection
|
// initialize global websocket connection
|
||||||
import {initConnection} from "@/app/lib/x32CommunicationManager";
|
import {initConnection} from "@/app/lib/x32CommunicationManager";
|
||||||
|
|
||||||
|
const WEBSOCKET_PORT = 3001;
|
||||||
|
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
const [appConfig, setAppConfig] = useState(null);
|
const [appConfig, setAppConfig] = useState(null);
|
||||||
const [activeTab, setActiveTab] = useState("mainMix");
|
const [activeTab, setActiveTab] = useState("mainMix");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initConnection(`ws://${window.location.hostname}:8080`);
|
initConnection(`ws://${window.location.hostname}:${WEBSOCKET_PORT}`);
|
||||||
fetchConfig().then(config => {
|
fetchConfig().then(config => {
|
||||||
setAppConfig(config);
|
setAppConfig(config);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user