Closed mikepea closed 10 years ago
@ashb can haz merge pls?
Looking over this diff again (sorry). Is there a reason we can't achieve this via the COTTON_CONFIG environment variable already? Do many/any other projects have a vagrant/
folder?
I don't think any other projects use Vagrant in earnest yet, it's a common pattern for vagrant specific files though.
Setting an envvar means that I have shell mangling to do to switch between zone:vagrant and zone:staging (eg), which is really prone to error.
On 1 October 2014 09:47, Ash Berlin notifications@github.com wrote:
Looking over this diff again (sorry). Is there a reason we can't achieve this via the COTTON_CONFIG environment variable already? Do many/any other projects have a vagrant/ folder?
— Reply to this email directly or view it on GitHub https://github.com/ministryofjustice/cotton/pull/43#issuecomment-57435368 .
For Vagrant-based deploys, we want to remove the need to have the config repo present.
If env.provider_zone contains 'vagrant', load a local project.yaml file from ./vagrant/project.yaml