NBCUTechnology / pubstack

⛔️ [DEPRECATED] Publisher's DevStack
MIT License
8 stars 8 forks source link

Composer hangs during "install drush dependencies with composer" #176

Closed msound closed 9 years ago

msound commented 9 years ago

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.

cweagans commented 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>

msound commented 9 years ago

@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.

msound commented 9 years ago

@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).