Skip to content

Commit

Permalink
#31 fix : modify nginx conf file & settings route
Browse files Browse the repository at this point in the history
  • Loading branch information
0321minji committed Aug 30, 2024
1 parent a7a0997 commit 1a38533
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .config/nginx/UPCY.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ http{
}

location /static/ {
alias /UPCY_BE/static/;
alias /home/ubuntu/UPCY_BE/static/;
}

location /media/ {
alias /UPCY_BE/media/;
alias /home/ubuntu/UPCY_BE/media/;
}
}
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN addgroup -S ubuntu && adduser -S ubuntu -G ubuntu
# 로그 디렉토리 및 파일 생성
RUN mkdir -p /var/log/uwsgi/UPCY
RUN chown -R ubuntu:ubuntu /var/log/uwsgi
RUN chmod -R 777 /var/log/uwsgi

# 의존성 패키지 설치 및 삭제

Expand Down
2 changes: 1 addition & 1 deletion UpcyProject/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename':'/UPCY_BE/logs/debug.log',
'filename':'/home/ubuntu/UPCY_BE/logs/debug.log',
},
},
'loggers': {
Expand Down

0 comments on commit 1a38533

Please sign in to comment.