Define your target server
Edit /config/properties.ini
:
1 2 3 4 5 |
|
Test your deployment configuration
php symfony project:deploy stage
Preserve the production data
php symfony doctrine:data-dump data/production.yml
I would do it in a successive step, but, deploying, you could upload a different model schema: then, when dumping the data, Doctrine won’t be able to map the data in the database and your model schema.
Deploy
php symfony project:deploy stage --go
Test target server configuration
1 2 3 4 5 |
|
Re-configure the DBs
1 2 3 |
|
Build the environments
1 2 |
|
Load production data on production DB ( if a migration is needed… migrate! )
php symfony doctrine:data-load data/production.yml
Test the environment
php symfony test:all
Heal the environment
1 2 3 4 5 |
|
I’m pretty sure something is missing here, hope to see some replies.