Skip to content

Commit

Permalink
wp-cli: allow using more memory as composer can exhaust it
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Dec 27, 2017
1 parent b15eea6 commit 8423b6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/tools/wp-cli/default.nix
Expand Up @@ -25,6 +25,9 @@ let
'';

ini = writeText "wp-cli.ini" ''
[PHP]
memory_limit = 512M ; composer can be a bit of a memory pig

This comment has been minimized.

Copy link
@grahamc

grahamc Dec 27, 2017

Member

How would we make this customization for users who don't have the luxury of commit bit?

[Phar]
phar.readonly = Off
'';
Expand Down

1 comment on commit 8423b6a

@peterhoeg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this isn't really a piece of configuration but simply a default PHP limit that needs to increased.

I see where you're coming from though. Another option is to just set it to "-1" (i.e. unlimited) and never have to touch it again.

Remember, the generated php.ini is only used for running the wp command so it has no impact on anything else - the settings here are simply to allow wp to run and not in any way to customize it.

Please sign in to comment.