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

Add a facility to pass -d options to PHP #32

Open mallorydxw opened 9 years ago

mallorydxw commented 9 years ago

Example: a developer wants to write some tests using whippet-server but they don't want real emails to get sent, even if a different developer accidentally runs the tests on a copy of a production database.

Suggested syntax (just add a -d option to whippet-server which gets passed unmodified to php):

whippet-server -p 8910 -d sendmail_path=catchmail

should result in the following getting executed:

php -S localhost:8910 -d sendmail_path=catchmail