L
L
Leonid Markov2021-02-15 20:45:05
1C-Bitrix
Leonid Markov, 2021-02-15 20:45:05

Local development on Bitrix. Bitrix VM + IDE. How to organize it so that it works quickly?

I tried different options for working with Bitrix on my computer:
1) BWM on VirtualBox ( https://www.1c-bitrix.ru/download/vmbitrix.php );
2) OpenServer (or other WAMP build options);
3) Docker.

1) BWM on VirtualBox . Naturally, Bitrix works faster in its native environment, i.e. on BWM. But I would like to be able to access the project files through the IDE in order to index them.

On VirtualBox, this issue can be solved by mounting the folder
(instruction here ).
But after the site files are connected to VirtualBox from the host OS, the speed of the site decreases significantly.
The Bitrix performance test shows that the work with the file system is at a very low level.
If the site files are inside the VirtualBox container, then everything is ok.

It turns out that either the site works fine, but there is no direct access to the project files, or there is access, but the site barely moves.

Apparently the data transfer between host OS and guest OS is very low? Unfortunately, I don't know how it works.
Moreover, tests on SSD and HDD drives showed the same thing.

ps I also saw the option of connecting to VirtualBox via winscp or connecting via ide, as to a remote server, but there will be no project indexing. And in general, the option seems strange. Then you can immediately work with Bitrix for girls. server, where cms will be much faster than on the local.

2)openserver . In the case of WAMP, I have convenient access to the project files, but an unconfigured Bitrix environment. And you have to configure a lot there, one mbstring and utf-8 is not limited.
Here, however, I was surprised that in Bitrix tests, the speed of working with the file system is also very low, but it feels faster than VirtualBox + mount folder.

3) Docker . Well, with Docker it turned out the worst: an unconfigured web environment and a virtual machine in a virtual machine (Win WSL2 + Docker).

Please help with advice on how to organize the work so that it is convenient to interact with the project files and so that Bitrix works more or less.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VitalyChaikin, 2021-02-16
@VitalyChaikin

Usually, a copy of the virtual machine of the working server is taken, all edits and debugging are made there ...
When everything is ready, the files are uploaded to the productive;

V
Vyacheslav Shevchenko, 2021-02-17
@WebDev2030

I asked the same question and came to the following conclusions: if the site is small and works more or less quickly, then a shared folder with vbox is a normal option; if the site is heavy, then vbox with ssh deployment. PHPStorm can now be configured to dump all file changes, i.e. even when you change the branch in the git, it will unload everything. Yes, loading more small files takes time, but it's not critical. Even if you change something outside of PHPStorm, it will unload the changes / added file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question