beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

Add support to non-default composer.json #420

Closed AlexSkrypnyk closed 7 years ago

AlexSkrypnyk commented 7 years ago

Problem/Motivation

Currently, composer files is assumed to be composer.json, but should be read from environment variable COMPOSER (https://getcomposer.org/doc/03-cli.md#composer)

composer_json = "#{beet_root}/composer.json"

Expected behaviour

Configuration should be read from the composer configuration provided in COMPOSER environment variable.

Actual behaviour

Only composer.json is supported.

Proposed changes

Add support for composer config file with a fallback to the composer.json.

thom8 commented 7 years ago

Fixed in #421