The right development environment for Symfony2 Windows / Linux

First of all, I know that by name it should be the 400th time this has been set, so I will do my best to make this time different.

For some time (more than 2 years ..), our team struggled a lot with creating an environment for development. Our usual setup is to use Fedora24-25 / Php-fpm / nginx / mariadb as a server. However, we are “required” to use Windows because of some of the programs we must use.

Current scenario

We are currently using VirtualBox / VMWare Workstation to virtualize Fedora and are launching our Symfony2 application. The reason I don’t want to develop on Windows and then use the application in Fedora for production is due to the compatibility issues that arise when you have these two different OSs.

One of the developers (me) is currently transferring through the SMB folder with all the applications to the mounted drive on Windows and using PHPStorm on Windows .. also tells Symfony2 to redirect the cache / logs to another folder so that PhpStorm doesn’t have to index this, for so far it worked me best.

Problem

The problem arises when we need to do development .. right now we are working with Fedora with PhpStorm, which means that we are coding directly from our VirtualBox .. therefore, for the time being, developing Windows (aka host) is pretty much useless ... since we have both an IDE and a server running on a virtual machine.

Having said that, it’s pretty obvious that the problem is related to performance, we have pretty decent settings (HP Folio 9470m i7 16GB with SSD) .. but you can still feel the overhead and slow development of VM ... There’s no need to say that to switch between windows and linux you have to switch these windows and it hurts.

Problem number 2: we have 3 monitors installed, and the importance of this explanation will be given in the next section.

What i tried

  • Windows CIFS/SMB/NFS Fedora.

, , NFS. , Symfony2 2.8 50 php-opcache. , CIFS SMB, 500 , NFS 60 ..BUT, .. Windows 10 pro NFS .. , .

, , / / symfony Fedora. I/O 60 , .

  1. Docker

. , Google Symfony2 - , .. / ..

  1. Linux Windows

, ... , . linux, , ... Linux :

. 2 ... Softphone (earbuds) . Fedora , ... , ( , )

. № 2, , : Fedora, Linux Mint Ubuntu, CRTC 3 .

. HeidiSQL (, )

NGINX/PHP/Symfony2

  1. Linux Windows

, PhpStorm.. - , bla bla bla...

, : , , LINUX ​​ Symfony2/PHP /?

, , , .

!

+4
2

, ...

, 4- ( 4 PhpStorm), . , , - , IDE .

, - - .

+1

, ... Windows , PHP- , , PHP/Win PHP/Linux.

VBox SMB VBOXSF. Symfony , . dev-VM Hyper-V, . , VMware ! : vmware, windows... .

, Vagrant dev.

Docker Windows (Hyper-V) Docker Machine (VBox) :-( , Docker () prod.

WSL Linux "bash ", yougt... ... . IO , CIFS - . https://www.phoronix.com/scan.php?page=article&item=intel-7900x-wsl&num=2 , IO, .

, . . , , ... USB- .., , Linux Win VM. , WAMP ... .

0

Source: https://habr.com/ru/post/1669199/


All Articles