PHP Storm Deployment

After many different methods of working with a virtual machine, we have found the best way for us and want to share it with you.

File access via NFS is quite slow. Especially Flow and Neos in development mode are almost unusable via NFS. This is because Flow scans all PHP files via NFS for changes with every request in order to recompile any proxy files.

PHPStorm has the option of automatically copying the file to a remote server via SFTP each time it is saved using "Deployment configuration".

Advantages

Disadvantages

Screenshot of the input for accessing the workshop box

Configuring access to the box

In the case of the workshop box, the data is as follows:

SFTP Host: 172.17.28.28

User name: vagrant

Private key:

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

Screenshot of the Mappings category

Set mapping between local and remote

Screenshot of the additional options

Additional options

  • Upload external changes also copies data that has been created via git
$(“Best-Solution”).focus();
Anastasiia Zaieva, Entwicklung at punkt.de
Working at punkt.de