本地发布调整

This commit is contained in:
joylink_fanyuhong 2024-03-27 15:47:56 +08:00
parent b0b0074608
commit f0db7a70ab
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0", "test": "echo \"No test specified\" && exit 0",
"dev": "quasar dev", "dev": "quasar dev",
"build": "quasar build", "build": "set NODE_ENV=local_test&&quasar build",
"build:test": "set NODE_ENV=test&&quasar build", "build:test": "set NODE_ENV=test&&quasar build",
"build:publish": "set NODE_ENV=publish&&quasar build", "build:publish": "set NODE_ENV=publish&&quasar build",
"protoc": "node scripts/proto.cjs", "protoc": "node scripts/proto.cjs",

View File

@ -3,6 +3,8 @@ function getHost(): string {
return 'test.joylink.club/bjrtsts-server'; return 'test.joylink.club/bjrtsts-server';
} else if (process.env.ENV_MODE == 'publish') { } else if (process.env.ENV_MODE == 'publish') {
return 'joylink.club/bjrtsts-server'; return 'joylink.club/bjrtsts-server';
} else if (process.env.NODE_ENV == 'local_test') {
return '192.168.33.233:9091';
} }
// return '192.168.3.7:9091'; // return '192.168.3.7:9091';
// return '192.168.3.47:9091'; // return '192.168.3.47:9091';