Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackendAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Dojo Project (HES-SO)
Projects
Backend
DojoBackendAPI
Compare revisions
8531fc9f5fc4cf4d9ad7e3c5bc2639445c4abbd8 to 6d615e8afd5febc505cf38d22bac75915d6e4342
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/backend/dojobackendapi
Select target project
No results found
6d615e8afd5febc505cf38d22bac75915d6e4342
Select Git revision
Branches
add_route_assignments
ask-user-to-delete-exercises-on-duplicates
bedran_exercise-list
jw_sonar
jw_sonar_backup
main
update-dependencies
v6.0.0
Tags
2.0.0
2.1.0
2.2.0
3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.3.0
3.4.0
3.4.1
3.4.2
3.5.0
3.5.1
3.5.2
3.5.3
4.0.0
4.1.0
5.0.0
5.0.1
6.0.0-dev
v1.0.1
32 results
Swap
Target
dojo_project/projects/backend/dojobackendapi
Select target project
Dojo_Project_Nguyen/backend/dojobackendapi
dojo_project/projects/backend/dojobackendapi
2 results
8531fc9f5fc4cf4d9ad7e3c5bc2639445c4abbd8
Select Git revision
Branches
add_route_assignments
ask-user-to-delete-exercises-on-duplicates
bedran_exercise-list
jw_sonar
jw_sonar_backup
main
update-dependencies
v6.0.0
Tags
2.0.0
2.1.0
2.2.0
3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.3.0
3.4.0
3.4.1
3.4.2
3.5.0
3.5.1
3.5.2
3.5.3
4.0.0
4.1.0
5.0.0
5.0.1
6.0.0-dev
v1.0.1
32 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
bug fix
· 6d615e8a
michael.minelli
authored
7 months ago
6d615e8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ExpressAPI/src/config/Config.ts
+1
-1
1 addition, 1 deletion
ExpressAPI/src/config/Config.ts
ExpressAPI/src/init.ts
+1
-2
1 addition, 2 deletions
ExpressAPI/src/init.ts
with
2 additions
and
3 deletions
ExpressAPI/src/config/Config.ts
View file @
6d615e8a
...
@@ -72,7 +72,7 @@ class Config {
...
@@ -72,7 +72,7 @@ class Config {
constructor
()
{
constructor
()
{
this
.
api
=
{
this
.
api
=
{
port
:
Number
(
process
.
env
.
API_PORT
||
30992
)
port
:
Number
(
process
.
env
.
API_PORT
||
0
)
};
};
this
.
requestClientValidation
=
JSON5
.
parse
(
process
.
env
.
REQUEST_CLIENT_VALIDATION
||
'
{"version": {}}
'
);
this
.
requestClientValidation
=
JSON5
.
parse
(
process
.
env
.
REQUEST_CLIENT_VALIDATION
||
'
{"version": {}}
'
);
...
...
This diff is collapsed.
Click to expand it.
ExpressAPI/src/init.ts
View file @
6d615e8a
...
@@ -7,8 +7,7 @@ import './shared/helpers/TypeScriptExtensions.js';
...
@@ -7,8 +7,7 @@ import './shared/helpers/TypeScriptExtensions.js';
if
(
cluster
.
isPrimary
)
{
if
(
cluster
.
isPrimary
)
{
if
(
process
.
env
.
NODE_ENV
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
if
(
process
.
env
.
NODE_ENV
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
dotenvExpand
.
expand
(
dotenv
.
config
({
path
:
path
.
join
(
__dirname
,
'
../.env
'
)
}));
dotenvExpand
.
expand
(
dotenv
.
config
());
dotenvExpand
.
expand
(
dotenv
.
config
({
path
:
path
.
join
(
__dirname
,
'
../config.env
'
)
}));
}
else
{
}
else
{
dotenv
.
config
({
path
:
path
.
join
(
__dirname
,
'
../.env.keys
'
)
});
dotenv
.
config
({
path
:
path
.
join
(
__dirname
,
'
../.env.keys
'
)
});
dotenvExpand
.
expand
(
dotenv
.
config
({
DOTENV_KEY
:
process
.
env
.
DOTENV_KEY_DEVELOPMENT
}));
dotenvExpand
.
expand
(
dotenv
.
config
({
DOTENV_KEY
:
process
.
env
.
DOTENV_KEY_DEVELOPMENT
}));
...
...
This diff is collapsed.
Click to expand it.