capistrano / capistrano/composer

Won't allow me to change values with ScriptHandler::buildParameters

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

Description

Hi there,

I installed this plugin for my Symfony2 project. When the composer install task runs, it doesn't ask me to provide parameters like it does if I run `composer install` manually. I have this in my `composer.json` file:

```
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
]
},
"extra": {
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
},
```

If it doesn't generate correct parameter file, the next hook `clearCache` won't work properly because of the wrong database connection. Is there anything I can do to get `buildParameters` working during a deployment?

**I do not have `--no-interaction` argument in the `composer install` command.**

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.