Skip to content

Commit

Permalink
fix cd
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jul 1, 2024
1 parent b05a3e3 commit c5a7baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ WORKDIR /app

COPY --from=builder /app/dist /app

RUN npm install -g pm2
RUN npm install -g pm2 serve

COPY ecosystem.config.js ./

EXPOSE 3000

CMD ["pm2-runtime", "ecosystem.config.js"]
CMD ["pm2-runtime", "start", "ecosystem.config.js"]
3 changes: 2 additions & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/*eslint no-undef: "off"*/
// ecosystem.config.js
module.exports = {
apps: [
{
name: 'vite-react-app',
script: 'serve',
args: '-s . -l 3000',
args: '-s /app -l 3000',
env: {
NODE_ENV: 'production',
},
Expand Down

0 comments on commit c5a7baf

Please sign in to comment.