Skip to content

Commit

Permalink
ci: ts-node를 프로덕션에서 사용 (part 2) (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Jul 23, 2023
1 parent e42d379 commit c472c79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ jobs:
working-directory: backend
run: pnpm install

- name: build backend
working-directory: backend
run: pnpm build
# TODO(@scarf005): #594
# - name: build backend
# working-directory: backend
# run: pnpm build

- name: create .env file
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
working-directory: backend
run: pnpm install

- name: build backend
working-directory: backend
run: pnpm build
# TODO(@scarf005): #594
# - name: build backend
# working-directory: backend
# run: pnpm build

# TODO: 테스트 실행
9 changes: 6 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ RUN npm install --global pnpm
COPY . .
RUN pnpm install

RUN pnpm install --global pm2
RUN pm2-runtime --version || exit 1
ENTRYPOINT [ "pnpm", "prod" ]

ENTRYPOINT [ "sh", "start.sh"]
# RUN pnpm install --global pm2
# RUN pm2-runtime --version || exit 1

# TODO(@scarf005): #594
# ENTRYPOINT [ "sh", "start.sh"]

0 comments on commit c472c79

Please sign in to comment.