Skip to content

Commit

Permalink
#129 chore: 환경 변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Dropper-in committed Dec 3, 2023
1 parent 054defb commit 28b030a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ jobs:
MY_AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_IMAGE_BUCKET: ${{ secrets.AWS_IMAGE_BUCKET }}
DEFAULT_PROFILE_IMG_URL: ${{ secrets.DEFAULT_PROFILE_IMG_URL }}
DEFAULT_POST_IMG_URL: ${{ secrets.DEFAULT_POST_IMG_URL }}

run: |
echo "SECRET_KEY: $SECRET_KEY" >> .env
echo "MONGODB_URL=$MONGODB_URL" >> .env
echo "MY_AWS_ACCESS_KEY=$MY_AWS_ACCESS_KEY" >> .env
echo "MY_AWS_SECRET_KEY=$MY_AWS_SECRET_KEY" >> .env
echo "DEFAULT_PROFILE_IMG_URL=$DEFAULT_PROFILE_IMG_URL" >> .env
echo "NEXT_PUBLIC_DEFAULT_POST_IMG=$DEFAULT_POST_IMG_URL" >> .env
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
interpreter: "bash",
autorestart: true, // 프로세스 자동 재시작 활성화
watch: true, // 파일 변경 감지 활성화 (개발 중에만 활용)
max_memory_restart: "1G", // 1GB 이상 메모리 사용 시 재시작
max_memory_restart: "2G", // 2GB 이상 메모리 사용 시 재시작
env_prodection: {
NODE_ENV: "production", // Node.js 환경 설정
},
Expand Down

0 comments on commit 28b030a

Please sign in to comment.