2017-04-18 3 views
1

나는 작곡가에 따라 drupal에서 imgix 모듈을 사용하고 있습니다. 명령 drush composer-manage install을 실행하면 imgix-php (imgix 라이브러리)이 공급 업체 디렉토리에 다운로드 된 것을 볼 수 있습니다. 나는 모든 것을 올바르게 설정했고 내 localhost에서 잘 작동한다. 이제 나는 그들을 github에 밀어 넣고 싶습니다.에 imgix-php의 파일이 하나도 표시되지 않고 emty 인 것을 볼 수 있습니다. 그런 다음 파일 .gitignoreimgix-php에 있고 여기에서 vendor이 기록되어 있습니다. 그러나, 나는 그것을 주석 처리했다. 그러나 imgix-php의 파일을 추가 할 수 없습니다. 내가 그들을 추가 할 수없는 이유작곡가를 통해 다운로드 한 자식 파일에 모든 파일을 추가 할 수 없습니다.

On branch staging 
Your branch is up-to-date with 'origin/staging'. 
Changes not staged for commit: 
(use "git add <file>..." to update what will be committed) 
(use "git checkout -- <file>..." to discard changes in working directory) 
(commit or discard the untracked or modified content in submodules) 

modified: sites/all/vendor/imgix/imgix-php (modified content) 

no changes added to commit (use "git add" and/or "git commit -a") 

나에게 사람을 말할 수 없습니다 : 내가 선 .gitignorevendor을 주석과 상태를 확인하면, 나를 보여줍니다. 당신이

git add /path/to/folder/* 

또는

git add --all /path/to/folder 

를 사용하여 .gitignore 파일을 주석 후

+1

일반적으로 .gitignore에/vendor를 차단하고 composer.lock을 repo에 커밋합니다. repo에서 설치하는 사람은 소스에서 라이브러리를 가져 오기 위해 'composer install'을 수행합니다. https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md – markdwhite

+0

실제로 내 프로덕션 서버가 github에서 가져옵니다. 그래서 전 자식을 git에 추가해야합니다. 작곡가를 통해 다운로드되는 모든 파일을 추가하는 방법이 있습니까? – StreetCoder

+0

더 도움이 될 링크 (일반적으로 getcomposer.org 웹 사이트)에 지침이 있습니다. "정말로 이것을해야만한다고 생각한다면 몇 가지 옵션이 있습니다." – markdwhite

답변

0

당신은 실제로 imgix-PHP 파일을 추가?