0
我有一個Spring Cloud Config項目,我連接到我的github帳戶,我的項目工作正常,但在我的工作中,我的老闆想要創建一個git服務器並使用它而不是GitHub的帳戶,我的服務器上,以便安裝後的git(Linux操作系統,我創建了這樣一個信息庫:無法使用Spring雲配置從git服務器獲取信息
git init configuracionCarnet
cd configuracionCarnet
git pull <url from github>
git remote add origin [email protected]:/home/desarrollo/configuracionCarnetDesarrollo.git
在我的春節,雲配置的項目,我改變我的application.yml這樣的:
spring:
cloud:
config:
server:
git:
uri: [email protected]:/home/desarrollo/configuracionCarnet.git
username: user
password: password
server:
port: 8001
我運行該項目並開始正常,但是當我執行http://localhost:8001/health它拋出,該項目是下跌,所以我無法連接到GIT服務器,我在做什麼錯?
在此先感謝
請參閱[Git on the Server](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols)(以及下面的部分)瞭解簡介設置您自己的服務器。 –