Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Reverted back to use load()
Browse files Browse the repository at this point in the history
  • Loading branch information
guiguan committed Jul 25, 2017
1 parent 648dfd0 commit a67cd14
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\<username>\.dbKoda\`
## Development
In development mode dbKoda has four running modes: byo, super_dev, dev and prod
Expand Down
3 changes: 3 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a67cd14

Please sign in to comment.