Deployment use https://github.com/hpatoio/DeployBundle
-
Configuration
-
Parameters: Set in your parameters.yml the following parameters:
deploy_host: cocorico.prod deploy_dir: /var/www/cocorico.prod/Symfony deploy_user: cocorico
-
php.ini: Add this to your php.ini:
extension=mongodb.so
-
-
Deploy
-
Dry-Run:
php bin/console project:deploy prod
-
Real:
php bin/console project:deploy --go prod
For more informations see https://github.com/hpatoio/DeployBundle
-
-
Post deployment tasks
-
Install/Update Vendors:
export SYMFONY_ENV=prod && php composer.phar install --no-dev --prefer-dist --optimize-autoloader php composer.phar dump-autoload --optimize
-
Clear Symfony Cache:
php bin/console cache:clear --env=prod --no-debug
-
Dump Assetic Assets:
php bin/console assetic:dump --env=prod --no-debug
-
-
Add crons