diff --git a/electron/config/bin.js b/electron/config/bin.js index 6af78e8..9029fd2 100644 --- a/electron/config/bin.js +++ b/electron/config/bin.js @@ -80,7 +80,7 @@ module.exports = { */ exec: { go: { - directory: './go', + directory: './', cmd: 'go', args: ['run', './main.go', '--env=dev'], }, diff --git a/go/config/config.default.ini b/go/config/config.default.ini deleted file mode 100644 index e69de29..0000000 diff --git a/go/config/config.default.json b/go/config/config.default.json new file mode 100644 index 0000000..eedef48 --- /dev/null +++ b/go/config/config.default.json @@ -0,0 +1,9 @@ +{ + "logger": { + "outputJSON": false, + "level": "info", + "fileName": "ee-go.log", + "maxSize": 1024, + "maxAge": 30 + } +} \ No newline at end of file diff --git a/go/config/config.dev.json b/go/config/config.dev.json new file mode 100644 index 0000000..eedef48 --- /dev/null +++ b/go/config/config.dev.json @@ -0,0 +1,9 @@ +{ + "logger": { + "outputJSON": false, + "level": "info", + "fileName": "ee-go.log", + "maxSize": 1024, + "maxAge": 30 + } +} \ No newline at end of file diff --git a/go/config/config.prod.json b/go/config/config.prod.json new file mode 100644 index 0000000..5e28a97 --- /dev/null +++ b/go/config/config.prod.json @@ -0,0 +1,9 @@ +{ + "logger": { + "outputJSON": true, + "level": "info", + "fileName": "ee-go.log", + "maxSize": 1024, + "maxAge": 30 + } +} \ No newline at end of file diff --git a/main.go b/main.go index ee266cb..e18d4dc 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,9 @@ package main import ( - "ee-go/eapp" + "ee-go/eboot" ) func main() { - eapp.Run() + eboot.Run() }