Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
1a7ace51
Commit
1a7ace51
authored
Sep 22, 2019
by
Nick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: CONFIG_FILE env param
parent
d0dc300a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
config.js
server/core/config.js
+4
-0
No files found.
server/core/config.js
View file @
1a7ace51
...
...
@@ -22,6 +22,10 @@ module.exports = {
confPaths
.
config
=
path
.
join
(
WIKI
.
ROOTPATH
,
`dev/docker-
${
process
.
env
.
DEVDB
}
/config.yml`
)
}
if
(
process
.
env
.
CONFIG_FILE
)
{
confPaths
.
config
=
path
.
resolve
(
WIKI
.
ROOTPATH
,
process
.
env
.
CONFIG_FILE
)
}
process
.
stdout
.
write
(
chalk
.
blue
(
`Loading configuration from
${
confPaths
.
config
}
... `
))
let
appconfig
=
{}
...
...
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