-
Github / github 배포하기 / 레포지터리 생성Web dev/Git&Github 2022. 4. 11. 12:58728x90반응형
포트폴리오 올리려고 무료호스팅 사이트를 찾다가 깃헙페이지로 배포하기로 결정했다.
예전에 닷홈에서 무료호스팅을 썼지만 기간이 지나면 돈을 내야한다 ㅠ3ㅠ
어차피 깃헙 관리도 해야하니 1석2조라고 생각했다.
이번 포스팅에서는 기본 배포방법을 알아보고 다음번에는 리엑트프로젝트 배포를 해볼것이다.
1. 깃헙아이디를 만들어준다 > 레포지터리 이동 후 new를 눌러 생성해준다.
2. 레포지터리를 생성해준다. 퍼블릭으로 해야한다. > readme,gitignore 등등은 나중에 만들어도 된다.
3. 파일 업로드 > 그냥 따라하면된다. readme파일 체크안했더니 리드미 만들라고도 생겼다.
나는 vscode를 쓴다. 올릴 파일을 열고 터미널을 열어 그대로 따라해준다. 업로드가 된것을 확인 해준다.
이전에 올린 레포지터리다.
4. 페이지 생성. 셋팅 > 페이지 > 세이브를 눌러주고 안내해주는 링크를 누르면 완성~~
그냥 페이지 올리는 것은 간단하다.
리엑트 업로드하는데서 하루종일 버벅거렸다.. ㅠ3ㅠ
728x90반응형'Web dev > Git&Github' 카테고리의 다른 글
Git / github pull 덮어쓰기 (0) 2022.05.06 Git / 원경 저장소 확인, 연결 끊기 (git remote) (0) 2022.05.06 GitHub / React gh-pages gitgub 배포 빌드 후 빈화면 / ConnectRouter baseURL history 설정방법 (0) 2022.04.11 GitHub / React gh-pages 배포 빌드 후 빈화면 / BrowserRouter 라우팅 문제해결 (0) 2022.04.11 GitHub / React 배포 / gh-pages 사용하기 (0) 2022.04.11