Skip to content

Commit

Permalink
Merge pull request #449 from roots/remove-composer-from-path
Browse files Browse the repository at this point in the history
Fixes #374 - Remove composer vendor/bin from $PATH
  • Loading branch information
swalkinshaw committed Dec 28, 2015
2 parents 790265f + 8e7fe9e commit e1e3b77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fixes #374 - Remove composer vendor/bin from $PATH ([#449](https://github.com/roots/trellis/pull/449))
* Refactor hosts files ([#313](https://github.com/roots/trellis/pull/313))
* Fixes #436 - Let WP handle 404s for PHP files ([#448](https://github.com/roots/trellis/pull/448))
* Fixes #297 - Use `php_flag` vs `php_admin_flag` ([#447](https://github.com/roots/trellis/pull/447))
Expand Down
7 changes: 0 additions & 7 deletions roles/composer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
register: composer_update_result
changed_when: composer_update_result | success and 'already using composer version' not in composer_update_result.stderr

- name: add Composer vendor binary path
lineinfile:
dest: /etc/environment
regexp: ^PATH="(((?!:./vendor/bin).)*)"
line: PATH="\1:./vendor/bin"
backrefs: yes

- name: Composer config github-oauth
command: composer config -g github-oauth.github.com {{ composer_github_oauth_token }}
when: composer_github_oauth_token is defined

0 comments on commit e1e3b77

Please sign in to comment.