Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
bb7f77a5
There was a problem fetching the pipeline summary.
Commit
bb7f77a5
authored
8 years ago
by
Rudolf Copi Eckelberg
Browse files
Options
Downloads
Patches
Plain Diff
Moved config files to config folder
parent
fac54082
No related branches found
No related tags found
2 merge requests
!116
Release v1.0.0
,
!25
Auth
Pipeline
#
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/config.json.example
+0
-0
0 additions, 0 deletions
config/config.json.example
config/test_config.json.example
+0
-0
0 additions, 0 deletions
config/test_config.json.example
gulpfile.babel.js
+4
-4
4 additions, 4 deletions
gulpfile.babel.js
src/libs/config.js
+4
-5
4 additions, 5 deletions
src/libs/config.js
with
8 additions
and
9 deletions
config.json.example
→
config/
config.json.example
+
0
−
0
View file @
bb7f77a5
File moved
This diff is collapsed.
Click to expand it.
test_config.json.example
→
config/
test_config.json.example
+
0
−
0
View file @
bb7f77a5
File moved
This diff is collapsed.
Click to expand it.
gulpfile.babel.js
+
4
−
4
View file @
bb7f77a5
...
@@ -46,10 +46,10 @@ gulp.task('compile', () => {
...
@@ -46,10 +46,10 @@ gulp.task('compile', () => {
.
pipe
(
gulp
.
dest
(
'
build
'
));
// move compiled files to build directory
.
pipe
(
gulp
.
dest
(
'
build
'
));
// move compiled files to build directory
// copy configuration file to build directory
// copy configuration file to build directory
gulp
.
src
(
'
config.json
'
)
gulp
.
src
(
'
config
/config
.json
'
)
.
pipe
(
gulp
.
dest
(
'
build
'
));
.
pipe
(
gulp
.
dest
(
'
build
/config
'
));
gulp
.
src
(
'
test_config.json
'
)
gulp
.
src
(
'
config/
test_config.json
'
)
.
pipe
(
gulp
.
dest
(
'
build
'
));
.
pipe
(
gulp
.
dest
(
'
build
/config
'
));
});
});
gulp
.
task
(
'
build
'
,
[
'
compile
'
]);
gulp
.
task
(
'
build
'
,
[
'
compile
'
]);
...
...
This diff is collapsed.
Click to expand it.
src/libs/config.js
+
4
−
5
View file @
bb7f77a5
const
nconf
=
require
(
'
nconf
'
);
const
nconf
=
require
(
'
nconf
'
);
const
CONFIG_DIR
=
`config`
let
config_file
;
let
config_file
;
switch
(
process
.
env
.
NODE_ENV
)
{
switch
(
process
.
env
.
NODE_ENV
)
{
case
'
development
'
:
case
'
development
'
:
config_file
=
'
config.json
'
;
config_file
=
`
${
CONFIG_DIR
}
/
config.json
`
;
break
;
break
;
case
'
test
'
:
case
'
test
'
:
config_file
=
'
test_config.json
'
;
config_file
=
`
${
CONFIG_DIR
}
/
test_config.json
`
;
break
;
break
;
case
'
production
'
:
case
'
production
'
:
config_file
=
'
config.json
'
;
config_file
=
`
${
CONFIG_DIR
}
/
config.json
`
;
break
;
break
;
}
}
...
@@ -19,6 +20,4 @@ nconf.argv()
...
@@ -19,6 +20,4 @@ nconf.argv()
.
env
()
.
env
()
.
file
({
file
:
`
${
process
.
cwd
()}
/
${
config_file
}
`
});
.
file
({
file
:
`
${
process
.
cwd
()}
/
${
config_file
}
`
});
console
.
log
(
nconf
.
get
(
'
mongodb
'
));
module
.
exports
=
nconf
;
module
.
exports
=
nconf
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment