일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- COMMIT
- TMS
- advColumnGrid
- python 3.7
- pyhcarm
- 중복제거
- c#
- PyCharm
- python3
- 델파이
- Visual Studio
- templates
- 백준
- queryset
- Delphi
- MSSQL
- blog
- github
- delphi 10.3
- Push
- pythonanywhere
- get_object_or_404
- rank
- anaconda3
- GIT
- HTML
- Django
- hackerrank
- dbadvgrid
- declare
- Today
- Total
DevHyun
[DevHyun's Blog] Pythonanywhere 에서 Git Project Pull 한 후 재배포 하기 본문
[DevHyun's Blog] Pythonanywhere 에서 Git Project Pull 한 후 재배포 하기
D3V3L0P3R 2020. 10. 19. 15:48장고걸스 코치들과 자원봉사자들의 수고로 번역된 글을 참고하였습니다.
Blog App에서 수정사항이 있을경우 Pycharm에서 Commit-Push 한 후에 Pythonanywhere에서 pull 해줘야 동기화 가능!
1. pythonanywhere -> consoles
Host, run, and code Python in the cloud: PythonAnywhere
Batteries included With Python versions 2.7, 3.3, 3.4, 3.5 and 3.6, and all the goodies you normally find in a Python installation, PythonAnywhere is also preconfigured with loads of useful libraries, like NumPy, SciPy, Mechanize, BeautifulSoup, pycrypto,
www.pythonanywhere.com
2. Blog Project 폴더로 변경
* Blog Project 명
cd DevhyunDjangoBlog |
3. Pull 하기
git pull |
4. 완료
* pythonanywhere -> web -> reload!
5. case 1) pull 할때 에러 발생
* pull 할때 충돌되는 파일이 있어서 merge error 발생
... .. . error: Your local changes to the following files would be overwritten by merge ... .. . |
6. git stash
*stash : unstaged 파일들을 임시 저장하고 HEAD의 상태로 백업을 하는 것
git stash git stash list - stash 한 list 호출 git stash pop - stash 내역 보여주기 |
7. 완료
*pythonanywhere -> web -> reload!
8. case 2) fatal error 발생
* 작업자가 누군지 정하지 않았을 때 발생
*** Please tell me who you are. ... .. . fatal: empty ident name (for <devhyun@8e86bfb0e784>) not allowed Cannot save the current index state |
9. email 및 이름 입력
git config --global user.email "you@example.com" git config --global user.name "Your Name" |
10. git stash
git stash git stash list - stash 한 list 호출 git stash pop - stash 내역 보여주기 |
11. pythonanywhere -> web -> reload!
12. 절대 경로 바꾸기(주석처리 된것 활성화)
- settings.py
- view.py
'Web > Django&Python Blog Projecct' 카테고리의 다른 글
[DevHyun's Blog] Django&Python으로 만든 Blog에 CSS 적용하기! (0) | 2020.10.19 |
---|---|
[DevHyun's Blog] Django Template 활용하기 (0) | 2020.10.19 |
[DevHyun's Blog] Django ORM과 QuerySet 그리고 동적데이터 활용 (0) | 2020.10.19 |
[DevHyun's Blog] Django&Python으로 만든 Blog를 가상환경(pythonanywhere)에서 배포하기! (0) | 2020.10.16 |
[DevHyun's Blog] django 에서 첫 URL 생성 후 view 와 Template만들기! (0) | 2020.10.16 |