2017-04-13 134 views
0

私人github上庫我已經安裝了readthedocs local server我無法從我的組織私建的GitHub庫通過Django的allauth無法克隆readthedocs本地服務器

我在所有倉庫管理員權限,而我在管理面板配置Django的allauth:

  • 添加客戶端ID祕密鑰匙"admin/socialaccounts/socialapplications"
  • 接入令牌加入"admin/socialaccounts/socialtoken"
  • 添加以下配置到"admin/oauth/remoterepository"

enter image description here

每次我嘗試建立資料庫,我得到了以下錯誤:

Failed to import project: Failed to get code from 'https://github.com/my-organization/my-project.git' (git clone): 128 git 
clone error output: fatal: could not read Username for 'https://github.com': No such device or address 

是否有人知道爲什麼會出現這種情況?是否有人能夠在類似的情況下使用組織內的私人存儲庫配置本地readthedocs服務器?

回答

0

我有固定加入標誌問題:

ALLOW_PRIVATE_REPOS = True 

進入我的設置文件我的項目/ readthedocs /設置/ local_settings.py。這將激活x-oauth-basic爲Github存儲庫提供的URL,允許我使用我的Github個人訪問令牌克隆存儲庫。

https://<your token>:[email protected]/my-organization/my-project.git 
:使用以下格式我剛剛更新了 庫克隆網址領域上 管理員/的OAuth/remoterepository