Skip to content

Instantly share code, notes, and snippets.

@marek-saji
Created February 28, 2013 10:23
Show Gist options
  • Save marek-saji/5055725 to your computer and use it in GitHub Desktop.
Save marek-saji/5055725 to your computer and use it in GitHub Desktop.
Run developer's PHP server, but grep-out boring logs about static files.
#!/bin/sh
cd "$( dirname "$0" )/src/public"
echo "\
APPLICATION_ENV=development \
INSTANCE_NAME=crls \
exec php -d max_input_vars=1111 -S 0.0.0.0:8000 2>&1" \
| script /dev/null \
| grep -vP '\[200\]: \/+(image|style|script|logo|theme)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment