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.
commit35abe070ee175387cc6d6babd75481d139302f45
authorPeter Hoeg <peter@hoeg.com>
dateSat 13 Jan 2018, 14:02 (9 years ago)
parentf607771
pkgs/development/tools/wp-cli/default.nix+4−1
@@ -26,7 +26,7 @@ let
2626
2727 ini = writeText "wp-cli.ini" ''
2828 [PHP]
29− memory_limit = 512M ; composer can be a bit of a memory pig
29+ memory_limit = -1 ; composer uses a lot of memory
3030
3131 [Phar]
3232 phar.readonly = Off
@@ -40,6 +40,9 @@ in stdenv.mkDerivation rec {
4040
4141 ln -s ${bin} $out/bin/wp
4242 install -Dm644 ${completion} $out/share/bash-completion/completions/wp
43+
44+ # this is a very basic run test
45+ $out/bin/wp --info
4346 '';
4447
4548 meta = with stdenv.lib; {