문제

To deploy one of my site I'm using the excelent tool called: http://capifony.org/ which is very handy, but today a composer update throws the error very similar to this: http://tech.enekochan.com/2013/12/16/fix-fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-x-bytes-with-composer-update/.

My question is how can I pass mentioned option (-d memory_limit=-1) to php console in capifony scripts?

도움이 되었습니까?

해결책

The Capifony site makes mention of how to set which PHP binary is run.

All symfony tasks (both symfony 1.x and Symfony2) run using the 
default php binary on the production server. You can change this via:

set :php_bin, "/path/to/php"

Try setting the string to "/usr/bin/env php -d memory_limit=-1". The /usr/bin/env part is a Linux tool that will search the PATH for the given program, to avoid having to 'hard-code' the full path of the program into place.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top