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
Commits
9ddd13a5
Commit
9ddd13a5
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
Multiprocess => Do not run multiprocess in dev env.
parent
cb29e39f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#30101
passed
1 year ago
Stage: code_quality
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ExpressAPI/src/app.ts
+11
-6
11 additions, 6 deletions
ExpressAPI/src/app.ts
ExpressAPI/src/shared
+1
-1
1 addition, 1 deletion
ExpressAPI/src/shared
with
12 additions
and
7 deletions
ExpressAPI/src/app.ts
+
11
−
6
View file @
9ddd13a5
require
(
'
./InitialImports
'
);
// ATTENTION : These lines MUST be the first of this file
import
SharedConfig
from
'
./shared/config/SharedConfig
'
;
import
WorkerRole
from
'
./process/WorkerRole
'
;
import
ClusterManager
from
'
./process/ClusterManager
'
;
import
API
from
'
./express/API
'
;
...
...
@@ -9,9 +10,13 @@ import HttpManager from './managers/HttpManager';
HttpManager
.
registerAxiosInterceptor
();
(
new
ClusterManager
([
{
role
:
WorkerRole
.
API
,
quantity
:
ClusterManager
.
CORES
,
restartOnFail
:
true
,
loadTask
:
()
=>
new
API
()
}
])).
run
();
if
(
SharedConfig
.
production
)
{
(
new
ClusterManager
([
{
role
:
WorkerRole
.
API
,
quantity
:
ClusterManager
.
CORES
,
restartOnFail
:
true
,
loadTask
:
()
=>
new
API
()
}
])).
run
();
}
else
{
(
new
API
()).
run
();
}
This diff is collapsed.
Click to expand it.
shared
@
985c0b6a
Compare
75fedb26
...
985c0b6a
Subproject commit
75fedb26c47bb6f707725307a79a45a13e62496d
Subproject commit
985c0b6a5dcb640404e5cf5fc91978215f961e3b
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