Update Angular tutorial scripts to run on port 5080

This commit is contained in:
juancarmore 2024-04-16 14:49:14 +02:00
parent 791c6d8110
commit a00a2c2b30
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
"version": "2.27.0", "version": "2.27.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {
"start": "./node_modules/@angular/cli/bin/ng.js serve", "start": "ng serve --port=5080 --host=0.0.0.0 --disable-host-check",
"build": "./node_modules/@angular/cli/bin/ng.js build", "build": "ng build",
"build:prod": "./node_modules/@angular/cli/bin/ng.js build --output-path ./openvidu-basic-node/public/ --configuration production" "build:prod": "ng build --output-path ./openvidu-basic-node/public/ --configuration production"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "15.0.4", "@angular/animations": "15.0.4",

View File

@ -49,7 +49,7 @@ export class AppComponent implements OnDestroy {
// If LIVEKIT_URL is not configured, use default value from local development // If LIVEKIT_URL is not configured, use default value from local development
if (!LIVEKIT_URL) { if (!LIVEKIT_URL) {
if (window.location.hostname !== 'localhost') { if (window.location.hostname === 'localhost') {
LIVEKIT_URL = 'ws://localhost:7880/'; LIVEKIT_URL = 'ws://localhost:7880/';
} else { } else {
LIVEKIT_URL = 'wss://' + window.location.hostname + ':7443/'; LIVEKIT_URL = 'wss://' + window.location.hostname + ':7443/';