git 사용
우선 다음처럼 개발 환경에서 변경된 파일을 서버에 적용하자.
(mysite) c:\projects\mysite>git add *
(mysite) c:\projects\mysite>git commit -m "settings 변경"
(mysite) c:\projects\mysite>git push
그리고 AWS 서버 터미널에 접속하여 다음 명령을 순서대로 수행한다.
ubuntu@jumpto:~$ cd ~/venvs/mysite/bin
ubuntu@jumpto:~/venvs/mysite/bin$ . activate
(mysite) ubuntu@jumpto:~/venvs/mysite/bin$ cd ~/projects/mysite
(mysite) ubuntu@jumpto:~/projects/mysite$ git pull
가상 환경으로 접속한 후 git pull 명령으로 변경된 내용을 깃허브에서 다운로드했다.
그리고 다음처럼 settings 옵션을 추가하여 서버를 실행하면 서버가 잘 작동할 것이다.
댓글