deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Allow setting of composer variables

Open dcanaud opened this issue 3 years ago • 1 comments

  • [ ] Bug fix #…?
  • [x] New feature?
  • [ ] BC breaks?
  • [ ] Tests added?
  • [x] Docs added?

We deploy different composer.json file based on the environment we want to deploy on, this change will allow the user to set the composer.json based on the host. The default is '' which will just use the default composer.json. Sample usage:

host('test')
    ->set('composer_env_vars', 'COMPOSER=composer-test.json')
    ->set('deploy_path', '/var/www/html);

host('dev')
    ->set('composer_env_vars', 'COMPOSER=composer-dev.json')
    ->set('deploy_path', '/var/www/html);

dcanaud avatar Aug 14 '22 06:08 dcanaud

Reference: https://getcomposer.org/doc/03-cli.md#composer

dcanaud avatar Aug 14 '22 06:08 dcanaud