dxw / whippet-server

Whippet Server launches a stand-alone web server for a specific WordPress installation. It makes WordPress easier to develop with, for example, by adding lots of debug information to the terminal without cluttering up or breaking your templates.
ISC License
80 stars 6 forks source link

Doesn't play well with WP-CLI #26

Open scribu opened 11 years ago

scribu commented 11 years ago

You can't run WP-CLI commands while whippet is running, because it temporarily modifies wp-config.php.

This sucks because people who are likely to be using whippet are also likely to be using WP-CLI.

mallorydxw commented 10 years ago

The errors you get when you try to use wp-cli with whippet:

% wp --path=/home/tomdxw/.cache/whippet/wordpresses/latest/ plugin install buddypress 

Fatal error: Call to undefined function add_filter() in /home/tomdxw/local/share/whippet/lib/load_whippet.php on line 15

We probably just need to wrap a few bits of code in if (function_exists(...)) {...} blocks.

scribu commented 10 years ago

In the mean time, I wrote an alternative: https://github.com/wp-cli/server-command