Skip to content

Instantly share code, notes, and snippets.

@IvanChepurnyi
Created September 27, 2013 23:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save IvanChepurnyi/6736788 to your computer and use it in GitHub Desktop.
Save IvanChepurnyi/6736788 to your computer and use it in GitHub Desktop.
This simple rewrite will help you to run phpunit from PHPStorm in Vagrant box without patching php.jar
location ~ ^/_intellij_phpunit_launcher.php$ {
expires off; ## Do not cache dynamic content
set $args "$args&dir=$document_root&config=phpunit.xml.dist";
fastcgi_pass unix://var/run/php5-fpm.sock; # Replace with your fpm pass
fastcgi_read_timeout 600;
include fastcgi_params; ## See /etc/nginx/fastcgi_params
}
@tegansnyder
Copy link

thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment