Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
403
Merge Requests
63
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
adc84259
Commit
adc84259
authored
25 minutes ago
by
Mark Harding
Browse files
Options
Download
(chore): implement pm2 runtime
parent
5a0f0093
chore/pm2-runtime
No related merge requests found
Pipeline
#116649386
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
containers/server/Dockerfile
View file @
adc84259
...
...
@@ -5,6 +5,10 @@ FROM node:13-alpine
COPY
. /dist
CMD
node "--max-old-space-size=2048" /dist/server
RUN
npm
install
pm2
-g
CMD
pm2-runtime /dist/server \
--max-memory-restart 1900M \
--instances 2
VOLUME
["/dist"]
\ No newline at end of file
This diff is collapsed.
server.ts
View file @
adc84259
...
...
@@ -136,11 +136,11 @@ const cache = () => {
};
app
.
get
(
'
/node-cache-stats
'
,
(
req
,
res
)
=>
{
res
.
send
Response
(
myCache
.
getStats
());
res
.
send
(
myCache
.
getStats
());
});
// All regular routes use the Universal engine
app
.
get
(
'
*
'
,
(
req
,
res
)
=>
{
app
.
get
(
'
*
'
,
cache
(),
(
req
,
res
)
=>
{
const
http
=
req
.
headers
[
'
x-forwarded-proto
'
]
===
undefined
?
'
http
'
...
...
This diff is collapsed.
Please
register
or
sign in
to comment