B
B
big_hasan2016-10-26 12:43:32
open server
big_hasan, 2016-10-26 12:43:32

What is the advantage of Vagrant (when compared to OpenServer or even DENWER)?

Background.
As a beginner (with absolutely zero experience and knowledge in this area), I needed to start web development with something. I read "all sorts of habrs" and decided to raise a local server using Vagrant. After a fairly long period of time with grief in half, with the help of multiple dances with a tambourine, I managed to do this. But I can hardly repeat it quickly - I did not understand much. Now I tried Open Server, set up a local server in a couple of hours and even quickly threw in my first very simple web application. "It was necessary to start with this, I would have saved a lot of time!" the thought has been tormenting me for days.
So. I know that (if I continue to develop) the day will come and I will need to use Vagrant, it is a universally recognized true tool, but I still do not understand why. What are its main advantages? And what difficulties will arise in the future when using the same Open Server?
PS: I suppose that the fuss with Vagrant is not so difficult and my “curly” hands are to blame for everything, but understanding this does not cancel the issue.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2016-11-05
@big_hasan

The advantage of docker (and vagrant, etc. - i.e. containers) is that when you create your project, you can give the client a container. in this form, everything will definitely work for the client - because it worked for you. What has earned on OpenServer is far from the fact that it will earn on hosting, on Denwer, etc. - starting from the paths and rights, and ending with the versions of the php libraries / settings. Plus, with containers, it's easy to release testing of your code in different versions of php\mysq, etc.
those. if you are just starting out and learning PHP, it is quite possible to start with OpenServer. But you will have to master Linux in the future at a minimum.

D
Dmitry Aitkulov, 2016-10-27
@Scarfase1989

I won’t say anything about the vagrant and the docker, it didn’t work. I used the following scheme for myself:
I installed a virtual box there centos and then LAMP and uploaded files via FTP, emulating the work of hosting.
I understand primitive and old like Hello world, but I feel better than Denver and open servers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question