2017-04-13 1 views
0

에 개인 GitHub의 저장소를 복제 할 수 없습니다.내가 <a href="http://docs.readthedocs.io/en/latest/install.html" rel="nofollow noreferrer">readthedocs local server</a>하지만 난 내 조직</strong>에서 개인 GitHub의 저장소를 구축 할 수 없습니까 <strong><strong>을 통해 장고 - allauth</strong>를 설치 한 readthedocs 로컬 서버

나는 모든 저장소에서 관리자 권한을 가지고 있고, 나는 관리자 패널에서 장고 - allauth를 구성 :

  • 이 및 비밀 키"admin/socialaccounts/socialapplications"클라이언트 ID를 추가.
  • 액세스 토큰"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 파일. 이렇게하면 Github 저장소에 대한 x-oauth-basic URL이 활성화되어 내 Github 개인 액세스 토큰을 사용하여 저장소를 복제 할 수 있습니다.

    https://<your token>:[email protected]/my-organization/my-project.git 
    
    : 난 그냥 다음 형식을 사용하여 관리/OAuth를/remoterepository저장소 복제 URL 필드를 업데이트
    관련 문제