capistrano / capistrano/composer

Provide Option for PHP version with composer:install_executable

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
182
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Not all systems have a binary on the path for `php`. Systems with multiple PHP versions installed generally append the version number to the end. For example:

```
which php72
/usr/bin/php72

which php56
/usr/bin/php56
```

To work around this an option that allows the PHP version to be specified works. This could be along the lines of:

```
set :composer_php_version, :php72
````

or

```
set :composer_php_version, '/usr/bin/php72'
```

The default version would always be `:php`

Related issues:
* https://github.com/capistrano/composer/issues/46 - This one tries to use php56 (but with args).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.