Verified Commit 2cc2adcf authored by Aral Balkan's avatar Aral Balkan
Browse files

Use new data path globals in index.js

parent e697aa1b
......@@ -3,8 +3,6 @@ const logger = require('winston')
const app = require('./app')
const portFromConfiguration = app.get('port')
const path = require('path')
const os = require('os')
const fs = require('fs-extra')
const sodium = require('libsodium-wrappers')
......@@ -29,8 +27,8 @@ function startFeathersServer () {
// File-based data (e.g., configuration, etc.) is saved at ~/.indie/site
const dataDirectoryPath = path.join(os.homedir(), '.indie', 'site')
const serverSecretFilePath = path.join(dataDirectoryPath, 'server-secret.json')
const dataDirectoryPath = app.get('dataDirectoryPath')
const serverSecretFilePath = app.get('serverSecretFilePath')
// On first run of the server only, create a server secret. This
// server secret is used to sign the JSON Web Tokens that we use
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