diff --git a/APP-distribution-db.json b/APP-distribution-db.json new file mode 100644 index 0000000..94ec493 --- /dev/null +++ b/APP-distribution-db.json @@ -0,0 +1,4 @@ +{ + "appLog": [], + "buildLog": [] +} \ No newline at end of file diff --git a/src/lib/db.js b/src/lib/db.js index 77083b9..998a81f 100644 --- a/src/lib/db.js +++ b/src/lib/db.js @@ -4,7 +4,7 @@ import FileSync from 'lowdb/adapters/FileSync' import { SYSTEM } from '../config' const isDev = process.env.NODE_ENV ? process.env.NODE_ENV === 'development' : false -const adapter = isDev ? new FileSync(path.join(SYSTEM.NAME + '-distribution-db.json')) : new FileSync(path.join(SYSTEM.WORKPATH, SYSTEM.NAME + '-distribution-db.json')) +const adapter = new FileSync(isDev ? path.join(SYSTEM.NAME + '-distribution-db.json') : path.join(SYSTEM.WORKPATH, SYSTEM.NAME + '-distribution-db.json')) const db = low(adapter) if (!db.get('appLog').value()) {