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