@@ -91,6 +91,7 @@ These are the possible role variables - you only need to have a small set define
9191
9292 symfony_project_branch: git branch, commit hash or version tag to deploy - defaults to master
9393 symfony_project_php_path: php
94+ symfony_project_php_options: ""
9495 symfony_project_keep_releases: 5
9596 symfony_project_git_clone_depth: 1 # uses git shallow copy
9697 symfony_project_github_token: Auth token for github rate limits
@@ -201,6 +202,29 @@ symfony_project_shared_folders: # folders to be linked from shared directory to
201202 - {name: logs, src: app/logs, path: app/logs}
202203 - {name: uploads, src: web/uploads, path: web/uploads}
203204` ` `
205+ # # Passing PHP options
206+
207+ Suppose you need to overide some of php's options on the command line. Simply set the symfony_project_php_options. For example
208+ ` ` ` yaml
209+ ---
210+ - hosts: servers
211+ roles:
212+ - servergrove.symfony2
213+
214+ vars:
215+ symfony_project_root: /tmp/test_app
216+ symfony_project_name: travis-test
217+ symfony_project_composer_path: /tmp/test_app/shared/composer.phar
218+ symfony_project_repo: https://github.com/symfony/symfony-standard.git
219+ symfony_project_env: prod
220+
221+ symfony_project_console_opts: '--no-debug'
222+ symfony_project_keep_releases: 5
223+
224+ symfony_project_php_path: php
225+ symfony_project_php_options: -dmemory_limit=512M -dzend.enable_gc=0
226+ ` ` `
227+ This will set the php variables memory_limit to 512M and zend.enable_gc to 0 when any php command is run, such as composer install or cache:warmup.
204228
205229# # Dependencies
206230
0 commit comments