Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: migration 제거 #565

Merged
merged 4 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
uses: actions/checkout@v3

- name: setup node.js
uses: actions/setup-node@master
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- name: setup pnpm
run: |
Expand All @@ -37,8 +38,12 @@ jobs:
pnpm config set store-dir .pnpm-store

- name: install dependencies
run: |
cd backend && pnpm install
working-directory: backend
run: pnpm install

- name: build backend
working-directory: backend
run: pnpm build

- name: create .env file
run: |
Expand All @@ -59,10 +64,6 @@ jobs:
NATION_LIBRARY_KEY=${{ secrets.NATION_LIBRARY_KEY }}
NAVER_BOOK_SEARCH_SECRET=${{ secrets.NAVER_BOOK_SEARCH_SECRET }}" > .env

- name: build file
run: |
cd backend && pnpm build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ hooks:
runas: ec2-user
ApplicationStart:
- location: scripts/start.sh
timeout: 60
timeout: 120
runas: ec2-user
11 changes: 0 additions & 11 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ services:
- ./database:/docker-entrypoint-initdb.d:ro
- ./database/data:/var/lib/mysql

migration:
container_name: migration
build:
context: ./migration
volumes:
- ./migration/migrations:/migrations
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}

backend:
container_name: backend
#image : node:16
Expand Down
2 changes: 0 additions & 2 deletions migration/.dockerignore

This file was deleted.

9 changes: 0 additions & 9 deletions migration/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions migration/database.json

This file was deleted.

7 changes: 0 additions & 7 deletions migration/entrypoint.sh

This file was deleted.

3 changes: 0 additions & 3 deletions migration/migrations/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions migration/migrations/sqls/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions migration/package.json

This file was deleted.

Loading