PHPStorm Deployment

After trying many different ways to work with a virtual machine, we’ve found the best approach for us and want to share it with you.

File access via NFS is quite slow. Flow and Neos in development mode, in particular, are practically unusable over NFS. This is because Flow checks all PHP files via NFS for changes with every request in order to recompile any proxy files if necessary.

PHPStorm offers the option, via “Deployment Configuration,” to automatically copy the file to a remote server via SFTP every time you save.

Advantages

Disadvantages

Screenshot of the login screen for accessing the Workshopbox

Configure Access to the Box

For the Workshopbox, the settings are as follows:

SFTP Host: 172.17.28.28

Username: vagrant

Private Key: 

.vagrant.d/boxes/punktde-VAGRANTSLASH-workshop/0/virtualbox/vagrant_private_key

Screenshot of the "Mappings" category

Configure mapping between local and remote

Screenshot of the additional options

Additional Options

  • "Upload external changes" also copies data via Git
$success = $this -> getConnected();
Mihriban Dalmis, Entwicklung at punkt.de
Working at punkt.de