수정
This commit is contained in:
@@ -69,4 +69,24 @@ curl -sS https://chatbot.exdev.co.kr/chatbot/app/ | head
|
|||||||
|
|
||||||
## 5. SSH / git remote
|
## 5. SSH / git remote
|
||||||
|
|
||||||
서버 호스트명 `exdev.co.kr`·`REMOTE_HOST=exdev.co.kr` 는 **변경하지 않음** (배포·SSH용).
|
서버 SSH·배포 스크립트의 `REMOTE_HOST=exdev.co.kr` 는 **그대로** 둡니다 (서버 내부·스크립트용).
|
||||||
|
|
||||||
|
**로컬 Mac에서 `git push` 시 `Could not resolve hostname exdev.co.kr`**
|
||||||
|
|
||||||
|
일부 네트워크(회사·VPN·ISP)에서는 apex `exdev.co.kr` DNS만 실패하고 `stock.exdev.co.kr` 은 정상입니다.
|
||||||
|
같은 서버이므로 **git remote 만** 서브도메인으로 바꿉니다:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git remote set-url origin ssh://aidev@stock.exdev.co.kr/Volumes/ADATA/git/goldenChart.git
|
||||||
|
git push origin main
|
||||||
|
```
|
||||||
|
|
||||||
|
또는 `/etc/hosts` 에 `125.244.198.119 exdev.co.kr` 추가.
|
||||||
|
|
||||||
|
`~/.ssh/config` 예:
|
||||||
|
|
||||||
|
```
|
||||||
|
Host exdev exdev.co.kr stock.exdev.co.kr
|
||||||
|
HostName stock.exdev.co.kr
|
||||||
|
User aidev
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user