go config

This commit is contained in:
gaoshuaixing
2023-11-17 18:38:53 +08:00
parent e6fda5d1c7
commit 7685ddfccf
4 changed files with 6 additions and 29 deletions

View File

@@ -100,7 +100,7 @@ module.exports = {
go_dev: {
directory: './go',
cmd: 'go',
args: ['run', './main.go', '--env=dev'],
args: ['run', './main.go', '--env=dev', '--basedir=../'],
},
go_build_w: {
directory: './go',

View File

@@ -116,7 +116,8 @@ module.exports = (appInfo) => {
indexPath: '/public/dist/index.html',
host: '127.0.0.1',
port: 7072,
loadingPage: '/public/html/loading.html'
loadingPage: '/public/html/loading.html',
takeover: 'go'
};
/**
@@ -125,9 +126,11 @@ module.exports = (appInfo) => {
*/
config.cross = {
go: {
auto: false,
enable: true,
name: 'goapp',
args: ['--env=dev'],
protocol: "http://",
hostname: "127.0.0.1",
port: 7073,
}
};

View File

@@ -25,19 +25,6 @@ module.exports = (appInfo) => {
messageLog: true
};
/**
* Cross-language service
* 跨语言服务
*/
config.cross = {
go: {
auto: true,
name: 'goapp',
args: ['--env=dev'],
port: 7073,
}
};
return {
...config
};

View File

@@ -25,19 +25,6 @@ module.exports = (appInfo) => {
messageLog: false
};
/**
* Cross-language service
* 跨语言服务
*/
config.cross = {
go: {
auto: true,
name: 'goapp',
args: ['--env=dev'],
port: 7073,
}
};
return {
...config
};