I found excellent tool called capifony which is very very useful while developing symfony2 application and I want to work with multistage option. All works fine, but I have one problem with database configuration for other stages.
Suppose we have:
- 3 environments: development, production, staging
- 3 servers: local - development, my.site.com - production and staging.my.site.com - staging
How to setup capifony for this standard multistage example?
When we call:
cap production deploy:migrations
or
cap staging deploy:migrations
the capifony use the
--env=prod
for all symfony's console commands. There is a problem, because we call:
app/console doctrine:migrations:migrate --env=prod
for staging server, but the database configuration used for it is "prod" so we run schema update in production settings... How to solve it?