Coder Social home page Coder Social logo

Comments (4)

maschmann avatar maschmann commented on June 18, 2024

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.

maschmann avatar maschmann commented on June 18, 2024

@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.

bonswouar avatar bonswouar commented on June 18, 2024

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.

maschmann avatar maschmann commented on June 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.