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

Allow running whippet using a specified config file #33

Closed mallorydxw closed 8 years ago

mallorydxw commented 9 years ago

For development you might have wp-content/whippet-wp-config.php. But when running tests using whippet it would be beneficial to be able to use a different config file.

Suggested syntax:

whippet-server wp-content --config=tests/whippet-wp-config.php

Everything works as normal except instead of including wp-content/whippet-wp-config.php, tests/whippet-wp-config.php is included instead.

mallorydxw commented 8 years ago

The changes are here: https://github.com/dxw/whippet-server/compare/feature/issue-33

But that branch only works if you provide a --config option. If you don't provide the --config option it fails to work.