diff --git a/README.md b/README.md index d4ca338..f004306 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,21 @@ root_folder 6. *[optional]* After you have tried above commands, your `dbkoda-controller`’s native modules will be built against `electron`‘s node version. If you want to go back to 'byo' mode, you need to run `yarn dev:rebuild:current` to rebuild these native modules against your current `node` version. 7. *[optional]* If you encounter errors or irregularities during any of these steps, you can run `rm -rf node_modules` within each of the repositories, and then run `yarn install` again. If you are still having troubles, please check our FAQs or raise a new topic at our [support site](https://dbkoda.useresponse.com) +## Config +You can config dbKoda by putting a `config.yml` in your dbKoda home folder as follows: + +```yaml +# Note: please use full path for all commands + +# Local mongo binary path. dbKoda will detect your mongo binary upon first launch in your login +# shell +mongoCmd: /usr/local/bin/mongo +``` + +### dbKoda Home Folder +Mac & Linux: `~/.dbKoda/` +Windows: `c:\Users\\.dbKoda\` + ## Development In development mode dbKoda has four running modes: byo, super_dev, dev and prod diff --git a/electron-builder.json b/electron-builder.json index eb1bb39..8d66a75 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -8,6 +8,9 @@ "lib", "node_modules" ], + "asarUnpack": [ + "node_modules/@southbanksoftware/dbkoda-controller/lib/all-in-one.js" + ], "mac": { "category": "public.app-category.productivity", "icon": "build/icons/mac/icon.icns" diff --git a/src/app.js b/src/app.js index 500ad02..365abcb 100644 --- a/src/app.js +++ b/src/app.js @@ -147,7 +147,7 @@ const configController = () => { LOG_PATH: path.resolve(global.PATHS.logs, 'controller.log'), MONGO_SCRIPTS_PATH: path.resolve( app.getAppPath(), - 'node_modules/@southbanksoftware/dbkoda-controller/lib/', + '../app.asar.unpacked/node_modules/@southbanksoftware/dbkoda-controller/lib/', ), CONFIG_PATH: path.resolve(global.PATHS.home, 'config.yml'), UAT: global.UAT,