Update Angular tutorial scripts to run on port 5080
This commit is contained in:
parent
791c6d8110
commit
a00a2c2b30
@ -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",
|
||||||
|
|||||||
@ -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/';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user