Closed msound closed 9 years ago
Composer already handles this, but you have to set it up with a token from your Github account: composer config --global github-oauth.github.com <TOKEN>
@cweagans That's what I did. But if you blow up your vagrant and start over, the token is lost, and composer hangs. My point is, pubstack should handle it for you.
@cweagans In /roles/drush/tasks/main.yml
- name: "install drush dependencies with composer"
shell: >
composer install
chdir={{ drush_install_path }}
creates={{ drush_install_path }}/vendor/autoload.php
tags: drush
First of all, why are we using "shell" instead of anbsible's built in "composer".
And second, can we pass -n
option to composer so it works in non-interactive mode. Atleast it will fail, instead of hanging (waiting for user input of their github username/password).
If the github API limit is reached, then composer will hang during "install drush dependencies with composer". To overcome this, we should set up a github oauth token key in pubstack, either explicity in the config.yml or somehow use the token of the host OS user.