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

[Backend] Server Deploy #52

Open
6 tasks done
deploy-soon opened this issue Nov 13, 2019 · 4 comments
Open
6 tasks done

[Backend] Server Deploy #52

deploy-soon opened this issue Nov 13, 2019 · 4 comments
Assignees

Comments

@deploy-soon
Copy link
Contributor

deploy-soon commented Nov 13, 2019

백엔드 통신을 위한 서버를 제 azure 서버에 구축하고 있습니다.
domain은 굳이 안 받고 ip 그대로 통신하고자 합니다.

checklist

  • build virtual environment for python django
  • install requirements
  • MySQL setting, grant users
  • Separate django settings.py code into deployment and local test.
  • backend port setting
  • local CORS test
@deploy-soon deploy-soon self-assigned this Nov 13, 2019
@deploy-soon
Copy link
Contributor Author

[INFO]

  • 현재 master branch의 Frontend를 http://52.141.3.238:80에서 확인할 수 있습니다.

[TODO]

  • backend deploy
  • url 등록
  • ssl 등록
  • Dockerfile

cc. @dreamsh19 @jangdonghae @rxwe

@deploy-soon
Copy link
Contributor Author

deploy-soon commented Nov 22, 2019

For Linux (ubuntu 18.04) install MySQL

$ virtualenv --python=python3 backend
$ source backend/bin/activate
$ cd swpp2019-team6/backend
$ pip install -r requirements.txt

$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install python3-dev
$ pip install mysqlclient

@deploy-soon
Copy link
Contributor Author

For Linux (ubuntu 18.04) run backend

(backend) $ python manage.py migrate --settings=triplannet.settings.deploy
(backend) $ python manage.py runserver --settings=triplannet.settings.deploy

@jangdonghae
Copy link
Contributor

/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
와 같은 에러가 뜨시는 경우

$ sudo apt-get install libssl-dev
로 해결하시면 됩니다

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

No branches or pull requests

2 participants