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
d2bfb0cf
Commit
d2bfb0cf
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Plain Diff
Merge branch 'multiprocess-dev-mode' into v3.6.0
parents
cb29e39f
9ddd13a5
No related branches found
No related tags found
No related merge requests found
Pipeline
#30102
passed
1 year ago
Stage: code_quality
Stage: test
Stage: clean
Stage: upload
Stage: release
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 @
d2bfb0cf
require
(
'
./InitialImports
'
);
// ATTENTION : These lines MUST be the first of this file
require
(
'
./InitialImports
'
);
// ATTENTION : These lines MUST be the first of this file
import
SharedConfig
from
'
./shared/config/SharedConfig
'
;
import
WorkerRole
from
'
./process/WorkerRole
'
;
import
WorkerRole
from
'
./process/WorkerRole
'
;
import
ClusterManager
from
'
./process/ClusterManager
'
;
import
ClusterManager
from
'
./process/ClusterManager
'
;
import
API
from
'
./express/API
'
;
import
API
from
'
./express/API
'
;
...
@@ -9,9 +10,13 @@ import HttpManager from './managers/HttpManager';
...
@@ -9,9 +10,13 @@ import HttpManager from './managers/HttpManager';
HttpManager
.
registerAxiosInterceptor
();
HttpManager
.
registerAxiosInterceptor
();
(
new
ClusterManager
([
{
if
(
SharedConfig
.
production
)
{
role
:
WorkerRole
.
API
,
(
new
ClusterManager
([
{
quantity
:
ClusterManager
.
CORES
,
role
:
WorkerRole
.
API
,
restartOnFail
:
true
,
quantity
:
ClusterManager
.
CORES
,
loadTask
:
()
=>
new
API
()
restartOnFail
:
true
,
}
])).
run
();
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