Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (32 loc) · 1.14 KB

composer_install.md

File metadata and controls

40 lines (32 loc) · 1.14 KB

Opswork::Composer_Install Recipe

This recipe extends composer::install recipe and provides a "per application" composer installation management.

Configuration

{
    "composer": {
        "install": [
            {
                "exec": {
                    "user": "root",
                    "app": ["my-app-1", "my-app-2"],
                    "path": ["/srv/www"],
                    "executable": "./composer.phar"
                },
                "prefer": "dist",
                "dev": true,
                "global": false,
                "scripts": true,
                "pluggins": true,
                "optimize_autoloader": false
            }
        ]
    }
}

Parameters

This recipe's parameters comes in addition to original composer::install recipe's parameters.

Execution context

node[:composer][:install][0][:exec][:app]: Array of applications names on which perform a composer install.

When you define some app, their deploy path will be dynamicaly added to the path parameter, taking advantage of opswork's native Apps configuration