-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
78 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
"use strict"; | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const sh = require('shelljs'); | ||
const low = require('lowdb'); | ||
const FileSync = require('lowdb/adapters/FileSync'); | ||
const adapter = new FileSync(path.join(__dirname, 'db.json')); | ||
const home = require('../lib/home')(); | ||
const dbTmp = require('./db.json'); | ||
const dbPath = path.join(home, '.gitmarsdb'); | ||
if (!sh.test('-f', dbPath)) { | ||
fs.writeFileSync(dbPath, JSON.stringify(dbTmp, null, 4), 'utf-8'); | ||
fs.chmodSync(dbPath, 0o0755); | ||
} | ||
// const adapter = new FileSync(path.join(__dirname, 'db.json')) | ||
const adapter = new FileSync(dbPath); | ||
const db = low(adapter); | ||
module.exports = db; |
2 changes: 1 addition & 1 deletion
2
app/www/assets/add-legacy.aeebc00c.js → app/www/assets/add-legacy.a4cf953a.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/www/assets/add.7aedf044.js → app/www/assets/add.d74db385.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/www/assets/gitmars-legacy.488c2fcb.js → app/www/assets/gitmars-legacy.5680ed8b.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/www/assets/gitmars.b6fe4d6f.js → app/www/assets/gitmars.af08678f.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/www/assets/index-legacy.f2c6b3f1.js → app/www/assets/index-legacy.1899856b.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
app/www/assets/index-legacy.d0d7b074.js → app/www/assets/index-legacy.89698d0f.js
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
1643f2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: