You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.7 KiB
97 lines
2.7 KiB
{
|
|
// 使用 IntelliSense 了解相关属性。
|
|
// 悬停以查看现有属性的描述。
|
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "开发模式",
|
|
"cwd": "${workspaceRoot}",
|
|
"runtimeExecutable": "npm",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"runtimeArgs": [
|
|
"run",
|
|
"start",
|
|
"--",
|
|
"--inspect-brk"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"env": {
|
|
/*
|
|
参数都写在这里 省事儿
|
|
修改后需重启
|
|
*/
|
|
"NODE_ENV": "development",
|
|
"PORT": "5000",
|
|
//
|
|
"FS_QINIU_DOMAIN": "https://resources-test.anxinyun.cn",
|
|
"FS_QINIU_ACTION": "https://up-z0.qiniup.com",
|
|
"FS_QINIU_ASSETS_DIR": "temp_v5",
|
|
//
|
|
"FS_SOCKET_URL": "ws://localhost:4000",
|
|
//
|
|
"API": "http://localhost:4000",
|
|
// TCP代理配置
|
|
"TCP_HOST": "10.8.30.179",
|
|
"TCP_PORT": "2230",
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "本地构建",
|
|
"cwd": "${workspaceRoot}",
|
|
"runtimeExecutable": "npm",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"runtimeArgs": [
|
|
"run",
|
|
"build",
|
|
// "--",
|
|
// "--inspect-brk"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"env": {}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "生产模式",
|
|
"cwd": "${workspaceRoot}",
|
|
"runtimeExecutable": "npm",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"runtimeArgs": [
|
|
"run",
|
|
"start",
|
|
"--",
|
|
"--inspect-brk"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"env": {
|
|
/*
|
|
参数都写在这里 省事儿
|
|
修改后需重启
|
|
*/
|
|
"NODE_ENV": "production",
|
|
"PORT": "5100",
|
|
/* ... */
|
|
"FS_QINIU_DOMAIN": "https://resources-test.anxinyun.cn",
|
|
"FS_QINIU_ACTION": "https://up-z0.qiniup.com",
|
|
"FS_QINIU_ASSETS_DIR": "temp_v5",
|
|
//
|
|
"FS_SOCKET_URL": "ws://localhost:4000",
|
|
//
|
|
"API": "http://localhost:4000",
|
|
"TCP_HOST": "127.0.0.1",
|
|
"TCP_PORT": "2230",
|
|
}
|
|
},
|
|
]
|
|
}
|
|
|