BLK 파일 배포를 위해 git 절차를 수행하는 서버
-
nodeGit 서버 실행 위치: nodegitServer > ajaxSample > "node app.js"
-
nodeGit 설정 파일 위치: nodegitServer > ajaxSample > constant.js
-
로컬 Repository 위치: nodegitServer > TestNodegit
-
GitHub에 repository를 생성한다.
-
Repository 명은 'TestNodegit'을 사용한다. (다른 명도 상관 없을 것으로 추측)
-
해당 Repository를 로컬 Repository 위치에 Clone한다. (폴더가 존재하지 않는 경우, 직접 생성하면 된다.)
-
nodeGit 설정 파일인 constant.js을 연다.
-
'Git'과 'Git account'와 관련한 변수 값을 본인 계정의 Git 계정과 같게 수정한다.
-
서버가 위치한 경로에서 nodeJS 명령어를 입력할 수 있는 프로그램(cmd, powershell, git-shell, etc.)을 실행한다.
-
"node app.js"를 입력하여 서버를 실행한다.
번호 | 환경 |
---|---|
1 | nodejs 10.15.3(latest) |
2 | npm install 하지말고 그냥 사용 |