W
W
WindBridges2017-02-12 03:07:50
symfony
WindBridges, 2017-02-12 03:07:50

Deployer, Symfony, Composer and parameters.yml. Is interactive mode possible?

Usually, when we run composer install from the console, thanks to incenteev/composer-parameter-handler , we can interactively set parameter values ​​from parameters.yml.dist. I would really like to see similar behavior when we deploy an application using deployer . However, when deploying, the parameters.yml file is created completely identical to parameters.yml.dist, without asking for their values, as it happens in the console. Naturally, there are no database connection parameters and everything else in it. Next, the composer starts the clearCache command, which already needs a connection to the database, and naturally, at this moment, a connection error occurs, due to which the deployment is not completed to the end.
Has anyone come across? How was the problem solved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Romanenko, 2017-02-14
@slimus

1. Here is off recipe for symphonic application: https://github.com/deployphp/deployer/blob/master/... && https://github.com/deployphp/deployer/blob/master/...
2. What you most likely need is here: https://github.com/deployphp/deployer/issues/796
3. There is a gitter https://deployer.org/discuss and you can ask Anton how best to do it

B
BoShurik, 2017-02-12
@BoShurik

1. Set the "server_version" value for the database in the config. Connecting to the database at the stage of clearing / warming up the cache is necessary (in most cases) only for this.
2. I won’t tell you about the deployer, but capistrano can request parameters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question