Commit a90ba316 authored by Aral Balkan's avatar Aral Balkan
Browse files

The configuration is now also in the .private folder.

parent ca5869a6
Pipeline #377 skipped
......@@ -29,6 +29,7 @@ class App
instance = null
homeDirectory: null
privateDirectory: null
config: null
token: null
contentDirectory: null
......@@ -66,7 +67,9 @@ class App
# @identifier = 'builder'
@homeDirectory = path.join path.homedir(), 'better.fyi'
@logsDirectory = path.join @homeDirectory, '.private', 'logs'
@privateDirectory = path.join @homeDirectory, '.private'
@logsDirectory = path.join @privateDirectory, 'logs'
# Set up logging.
logFile = path.join @logsDirectory, 'App.log'
......@@ -83,7 +86,7 @@ class App
# Load the configuration
@config = require (path.join @homeDirectory, 'config', 'builder')
@config = require (path.join @homeDirectory, '.private', 'config', 'builder')
@token = @config.token
#
......
......@@ -126,7 +126,7 @@ class GitlabWebhookServer
users: users
anonRead: true
@gitServer = new GitServer [repository], true, (path.join app.homeDirectory, 'data'), 8889, null
@gitServer = new GitServer [repository], true, (path.join app.privateDirectory, 'data'), 8889, null
module.exports = GitlabWebhookServer
......
......@@ -251,7 +251,7 @@ fi
# Copy the configuration file with the development-time web hook token.
#
readonly configFolder=$ROOT/config
readonly configFolder=$privateFolder/config
if ! [ -d $configFolder ]; then
mkdir $configFolder
......
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