Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #21 from palantirnet/project-vendor-bin
Browse files Browse the repository at this point in the history
Add the project's vendor/bin to the path
  • Loading branch information
becw authored Jan 13, 2017
2 parents 8fed9aa + 0ed93cb commit 35e0c21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions conf/vagrant/provisioning/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@
when: provision_user.stat.exists
tags: common

- name: Set path to include $HOME/bin for zsh too
lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin"'
- name: Add the project's vendor/bin to the path
lineinfile: dest=/home/vagrant/.profile state=present line='export PATH="$PATH:/var/www/{{ hostname }}/vendor/bin"'
tags: common

- name: Add $HOME/bin and the project's vendor/bin to the zsh path
lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin:/var/www/{{ hostname }}/vendor/bin"'
tags: common

- name: Change directory into the project root on login
Expand Down

0 comments on commit 35e0c21

Please sign in to comment.