mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-20 04:28:10 +08:00
go config
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user