Sha256: 4cf338fac0d0e26dbadf0432b5c7c886684dbfe798340c186be0c7574b1481a0
Contents?: true
Size: 1.85 KB
Versions: 1
Compression:
Stored size: 1.85 KB
Contents
vagrant-phpstorm-tunnel ======================= `vagrant-phpstorm-tunnel` installs a proxy php binary which can be configured as a php-interpreter in [PhpStorm](http://www.jetbrains.com/phpstorm/). It will forward all php calls to `php` in the [Vagrant](http://www.vagrantup.com/) VM. [](https://rubygems.org/gems/vagrant-phpstorm-tunnel) This is a workaround for a missing feature in PhpStorm (see http://youtrack.jetbrains.com/issue/WI-19485). Installation ------------ ```sh vagrant plugin install vagrant-phpstorm-tunnel ``` Vagrantfile ----------- You can configure your `project_home` path within `vagrant` machine. This is needed for proper paths mapping from `PhpStorm` during debugging (please have a look also section below). Also you can configure prefix for each command executed into VM. For example you can prefix command with extra `sudo` permissions like in example below. ```ruby Vagrant.configure('2') do |config| (...) config.phpstorm_tunnel.project_home = '/home/vagrant/fuboo' config.phpstorm_tunnel.command_prefix = 'sudo' end ``` By default the plugin assumes that your project is shared as `/vagrant` in the VM. It will copy PhpStorm's helper-scripts into `.idea/vagrant/tmp/` to make them accessible from within the VM. PhpStorm -------- `vagrant-phpstorm-tunnel` will create a file `.idea/vagrant/php` in your vagrant-project. Select this file as a PHP interpreter in PhpStorm:  Add PHP server for your project  VM -- You should also export `PHP_IDE_CONFIG` parameter into `VM` environment with the same value as your PHP server name configured above ``` export PHP_IDE_CONFIG='serverName=www.fuboo.dev' ``` This is recommended to append above line to `~/.profile` file of your `VM`
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-phpstorm-tunnel-0.1.11 | README.md |