Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Builder
Commits
a90ba316
Commit
a90ba316
authored
May 01, 2016
by
Aral Balkan
Browse files
The configuration is now also in the .private folder.
parent
ca5869a6
Pipeline
#377
skipped
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
App.coffee
View file @
a90ba316
...
...
@@ -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
#
...
...
GitlabWebhookServer.coffee
View file @
a90ba316
...
...
@@ -126,7 +126,7 @@ class GitlabWebhookServer
users
:
users
anonRead
:
true
@
gitServer
=
new
GitServer
[
repository
],
true
,
(
path
.
join
app
.
hom
eDirectory
,
'data'
),
8889
,
null
@
gitServer
=
new
GitServer
[
repository
],
true
,
(
path
.
join
app
.
privat
eDirectory
,
'data'
),
8889
,
null
module
.
exports
=
GitlabWebhookServer
...
...
install
View file @
a90ba316
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment