Verified Commit 1de24ad1 authored by Frauke's avatar Frauke

changed folder name of persistend folder

parent 8a269867
......@@ -111,6 +111,6 @@ $RECYCLE.BIN/
.nuxt/
client/static/uploads/*
!client/static/uploads/.gitkeep
.hallo-gent/data
.hallo-gent/secret.json
!hallo-gent/.gitkeep
.hallo.gent/data
.hallo.gent/secret.json
!hallo.gent/.gitkeep
const fileUtils = require('./server/helpers/fileUtils')
const crypto = require('crypto')
fileUtils.fileExists('./.hallo-gent/secret.json')
fileUtils.fileExists('./.hallo.gent/secret.json')
.then(data => {
if (!data) {
const secret = crypto.randomBytes(256).toString('hex')
fileUtils.writeFile('secret.json', `{"secret" : "${secret}"}`, './.hallo-gent')
fileUtils.writeFile('secret.json', `{"secret" : "${secret}"}`, './.hallo.gent')
.catch(err => console.log(err))
}
})
......@@ -26,7 +26,7 @@ const services = require('./services')
const appHooks = require('./app.hooks')
const channels = require('./channels')
const secretFile = require('../.hallo-gent/secret.json')
const secretFile = require('../.hallo.gent/secret.json')
const app = express(feathers())
......
......@@ -2,7 +2,7 @@ const level = require('level')
const path = require('path')
const subLevel = require('level-sublevel')
const dbPath = process.env.DB_PATH || path.join(__dirname, '../../.hallo-gent/data')
const dbPath = process.env.DB_PATH || path.join(__dirname, '../../.hallo.gent/data')
const levelDB = level(dbPath, {
valueEncoding: 'json'
}, function (err, db) {
......
const jwt = require('jsonwebtoken')
const AccountCode = require('../../db/models/accountCode')
const PendingSite = require('../../db/models/pendingSite')
const secretFile = require('../../../.hallo-gent/secret.json')
const secretFile = require('../../../.hallo.gent/secret.json')
class Service {
constructor (options) {
......
......@@ -12,7 +12,7 @@ const {pendingSitesSublevel} = require('../../db/levelDb')
const db = new Database(accountCodesSublevel)
const dbSite = new Database(pendingSitesSublevel)
const secretFile = require('../../../.hallo-gent/secret.json')
const secretFile = require('../../../.hallo.gent/secret.json')
describe('\'Authenticate\' service', () => {
const code = 'testCode'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment