wp-cli: use as much memory as possible
Instead of imposing an arbitrary memory limit via php.ini, let wp-cli use as much as possible. If you need to limit the memory use, there are mechanisms in your OS far better suited for this.
This commit is contained in:
@@ -26,7 +26,7 @@ let
|
|||||||
|
|
||||||
ini = writeText "wp-cli.ini" ''
|
ini = writeText "wp-cli.ini" ''
|
||||||
[PHP]
|
[PHP]
|
||||||
memory_limit = 512M ; composer can be a bit of a memory pig
|
memory_limit = -1 ; composer uses a lot of memory
|
||||||
|
|
||||||
[Phar]
|
[Phar]
|
||||||
phar.readonly = Off
|
phar.readonly = Off
|
||||||
@@ -40,6 +40,9 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
ln -s ${bin} $out/bin/wp
|
ln -s ${bin} $out/bin/wp
|
||||||
install -Dm644 ${completion} $out/share/bash-completion/completions/wp
|
install -Dm644 ${completion} $out/share/bash-completion/completions/wp
|
||||||
|
|
||||||
|
# this is a very basic run test
|
||||||
|
$out/bin/wp --info
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user