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

컨테이너 배포 준비 #5

Open
achimkoh opened this issue May 17, 2021 · 1 comment
Open

컨테이너 배포 준비 #5

achimkoh opened this issue May 17, 2021 · 1 comment

Comments

@achimkoh
Copy link
Member

  • OPENDATA_API_KEY, SECRET_KEY를 환경 변수로 이전
  • ...
@red112
Copy link
Member

red112 commented May 19, 2021

@960813 (태양)님께서 AWS에 올리시며 수정/추가 하신 사항입니다.
제가 서버/웹쪽 개발 경험이 거의 없어서 이런 것을 어떤 형태로 소스 관리를 하는 것이 좋을지 잘 모르겠는데,
혹시 관리하기 좋은 아이디어나 손이 덜 가는 방법 제안 해 주시면 감사하겠습니다.
캡쳐 된 이미지를 보고 타이핑 한 것이라 오타가 있을 수 있는데, 어떤 내용이 달라졌는지 참고만 해 주시면 될 것 같아요~

#1. wsgi.py

import os
+import sys
from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
+sys.path.append('/svr/sanjae.server')

application = get_wsgi_application()

#2. config/httpd-app.conf
bitnami@ip-172-26-2-180:/srv/sanjae/server/config$ cat httpd-app.conf
<IfDefine !IS_DJANGOSTACK_LOADED>
Define IS_DJANGOSTACK_LOADED
WSGIDaemonProcess wsgi-djangostack processes=2 thread=15 display-name=%{ GROUP }

<Directory "/srv/sanjae.server">
Options +MultiViews
AllowOverride All
= 2.3>
Require all granted

WSGIProcessGroup wsgi-djangostack

WSGIApplicationGroup %{GLOBAL}

WSGIScriptAlias / '/srv/sanjae.server/config/wsgi.py'

#3. config/httpd-prefix.conf
bitnami@ip-172-26-2-180:/srv/sanjae/server/config$ cat httpd-prefix.conf
Include "/srv/sanjae.server/config/httpd-app.conf"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants