dssk35460 2013-12-18 11:01
浏览 43
已采纳

如何将选项传递给capifony php命令

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?

  • 写回答

1条回答 默认 最新

  • douhuigang9550 2013-12-18 11:12
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 怎么改成循环输入删除(语言-c语言)
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection
  • ¥15 nginx代理报502的错误
  • ¥100 当AWR1843发送完设置的固定帧后,如何使其再发送第一次的帧
  • ¥15 图示五个参数的模型校正是用什么方法做出来的。如何建立其他模型
  • ¥100 描述一下元器件的基本功能,pcba板的基本原理
  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题