Skip to content

Commit

Permalink
merge: [BE] 구글로그인, 자바스크립트지원, 개발용 토큰
Browse files Browse the repository at this point in the history
[BE] 백엔드 배포
  • Loading branch information
HKLeeeee authored Nov 29, 2023
2 parents 599fcae + 19c13b1 commit af51658
Show file tree
Hide file tree
Showing 72 changed files with 1,609 additions and 495 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/back-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
contents: read

jobs:
api-server-ci:
api-server-cd:
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
Expand All @@ -20,7 +20,7 @@ jobs:

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/api
run: npm install
run: npm ci

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/api
Expand All @@ -47,34 +47,5 @@ jobs:
port: ${{secrets.API_PORT}}
script: |
cd /root
echo "WEB_HOOK_URL=${{secrets.WEB_HOOK_URL}}" > .env
echo "PORT=${{secrets.PORT}}" >> .env
echo "DB_HOST=${{secrets.DB_HOST}}" >> .env
echo "DB_PORT=${{secrets.DB_PORT}}" >> .env
echo "DB_USERNAME=${{secrets.DB_USERNAME}}" >> .env
echo "DB_PASSWORD=${{secrets.DB_PASSWORD}}" >> .env
echo "DB_DATABASE=${{secrets.DB_DATABASE}}" >> .env
echo "SYNCHRONIZED=${{secrets.SYNCHRONIZED}}" >> .env
echo "NODE_ENV=production" >> .env
echo "RUNNING_SERVER=${{secrets.RUNNING_SERVER_URL}}" >> .env
echo "TIMEOUT=${{secrets.TIMEOUT}}" >> .env
echo "REDIS_HOST=${{secrets.REDIS_HOST}}" >> .env
echo "REDIS_PORT=${{secrets.REDIS_PORT}}" >> .env
echo "REDIS_PASSWORD=${{secrets.REDIS_PASSWORD}}" >> .env
echo "CLIENT_ID_GITHUB=${{secrets.CLIENT_ID_GITHUB}}" >> .env
echo "CLIENT_SECRET_GITHUB=${{secrets.CLIENT_SECRET_GITHUB}}" >> .env
echo "JWT_ACCESS_SECRET=${{secrets.JWT_ACCESS_SECRET}}" >> .env
echo "JWT_ACCESS_EXPIRE=${{secrets.JWT_ACCESS_EXPIRE}}" >> .env
echo "JWT_REFRESH_SECRET=${{secrets.JWT_REFRESH_SECRET}}" >> .env
echo "JWT_REFRESH_EXPIRE=${{secrets.JWT_REFRESH_EXPIRE}}" >> .env
echo "CHROMIUM_PATH=${{secrets.CHROMIUM_PATH}}" >> .env
echo "SESSION_SECRET=${{secrets.SESSION_SECRET}}" >> .env
echo "MONGO_PROD=${{secrets.MONGO_PROD}}" >> .env
echo "DEV_DB_PORT=${{secrets.DEV_DB_PORT}}" >> .env
echo "SLAVE_DB_HOST=${{secrets.SLAVE_DB_HOST}}" >> .env
echo "SLAVE_DB_PORT=${{secrets.SLAVE_DB_PORT}}" >> .env
echo "SLAVE_DB_USERNAME=${{secrets.SLAVE_DB_USERNAME}}" >> .env
echo "SLAVE_DB_PASSWORD=${{secrets.SLAVE_DB_PASSWORD}}" >> .env
echo "SLAVE_DB_DATABASE=${{secrets.SLAVE_DB_DATABASE}}" >> .env
echo "${{secrets.API_ENV}}" > .env
bash deploy.sh >> /dev/deploy.log 2>&1
2 changes: 1 addition & 1 deletion .github/workflows/back-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
contents: read

jobs:
running-server:
api-server-ci:
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
Expand Down
2 changes: 1 addition & 1 deletion backEnd/api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/dist
/node_modules
/.env

/.prod.env
# Logs
logs
*.log
Expand Down
Loading

0 comments on commit af51658

Please sign in to comment.