Skip to content

Commit

Permalink
fix: updates deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Aug 2, 2023
1 parent 6a45dfe commit ec65726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ ENV NITRO_PORT=4000
RUN --mount=type=cache,target=/root/.npm/_cacache/ \
npm install -g pm2@5.3.0

COPY --from=builder /build/.output ./
COPY --from=builder /build/ecosystem.config.js ./
COPY --from=builder /build/.output ./.output/
COPY --from=builder /build/ecosystem.config.cjs ./
COPY --from=builder /build/package.json ./

EXPOSE ${NITRO_PORT}

CMD ["pm2-runtime", "ecosystem.config.js"]
CMD ["pm2-runtime", "ecosystem.config.cjs"]
HEALTHCHECK --start-period=30s --retries=2 \
CMD wget --no-verbose --tries=1 --spider http://localhost:${NITRO_PORT}/health || exit 1
4 changes: 3 additions & 1 deletion ecosystem.config.js → ecosystem.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ module.exports = {
apps: [
{
name: 'rotki.com',
script: './server/index.mjs',
script: './.output/server/index.mjs',
args: 'start',
exec_mode: 'cluster',
instances: 'max',
},
],
};

0 comments on commit ec65726

Please sign in to comment.