Comments (4)
Hi bonswouar,
that's right: Will investigate later tonight. Strangely this did not occur during the sf2 default install (at least according to the last travis test). Maybe a change in the sf2 installation?
check: https://travis-ci.org/servergrove/ansible-symfony2
The parameters are processed when there is no parameters.ini and only a parameters.dist file, but I'm not sure why the interactive shell is popping up at that point.
And: Thanks for reporting 👍
from ansible-symfony2.
@bonswouar : I tried it locally with current 2.6 and 2.7 versions of symfony and the paramerters.yml gets created. Do you have any specialities in your deployment?
What environment do you use? sf version?
from ansible-symfony2.
Thank you for your investigation @maschmann !
Actually yes, I have some specialities in my deployment.. I use Incenteev/ParameterHandler to handle multiple parameter files.
Precisely, I've got 3 parameters.yml
files with that configuration in composer.json
:
"incenteev-parameters": [{
"file": "apps/config/common_parameters.yml"
},
{
"file": "apps/app1/config/parameters.yml"
},
{
"file": "apps/app2/config/parameters.yml"
}]
But it shouldn't change the behaviour of composer handling those .dist
files ?!
from ansible-symfony2.
@bonswouar that's actually triggered by the composer post-install/upgrade hook:
"scripts": {
...
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
...
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
...
]
},
"extra": {
...
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
...
}
But it's only framework-stuff triggered by the install/update.
During further research, I found a mentioning of non-interactive mode for composer here and as params here. I'll integrate into composer calls and test :-)
As far as I know, the interactive mode shouldn't be triggered if env > dev. Which env are you deploying?
// Edit
Try configuring the composer command like this:
symfony2_project_composer_opts: '--no-dev --optimize-autoloader --prefer-dist --no-interaction'
from ansible-symfony2.
Related Issues (18)
- Warmup or clean cache taks? HOT 1
- Optional webserver/php process restart HOT 1
- Milestones for a v1.0 release
- Default value of "symfony2_project_composer_opts" is wrong for DEV environment HOT 3
- remove wiki tab please, it is a broken feature
- Create symlink for parameters file fails
- Overwriteable subtasks?
- Error on deploy: boostrap.php.cache missing HOT 14
- Local Cache Folder HOT 2
- Error github.com has an unknown hostkey HOT 1
- How to execute post install composer scripts HOT 5
- Is master branch usable to deploy sf3.3/3.4 in production ? HOT 2
- Require parameters.yml link symlink prior to cache warmup HOT 1
- First execution throws error for creating link to source file HOT 5
- Refusing to convert between directory and link HOT 4
- weird behaviour. it does not pull sources from repo. HOT 4
- Running role for the first time generates an error. HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-symfony2.