Ido Barash
Ido Barash

Reputation: 5122

Wordpress local dev environment image

I would like to set an image for wordpress local environment. We have developers that are working with Mac, Windows and Linux and I wish that it will be easy to set a working environment.

It is important that they can use an IDE outside the VM for development, and GIT.

What is the best way to achive that? Docker or Vagrant?

I tried doing so according to this tutorial but there are some stuff wrong with it and it does not working. https://resources.distilnetworks.com/all-blog-posts/wordpress-development-with-vagrant

Upvotes: 1

Views: 110

Answers (2)

dsdenes
dsdenes

Reputation: 1035

You can use WPTunnel for this purpose.

It creates local WordPress installations inside Docker containers. The source files are mounted from a local directory, so any IDE and Git can access it:

https://github.com/dsdenes/wptunnel

E.g. if you create a local installation with:

$ wptunnel create mysite

then you can access the source files at ~/wptunnel/projects/mysite So if you want to use a version control tool like Git, then you can do:

$ git init ~/wptunnel/projects/mysite

and edit the files with your favorite IDE:

$ code ~/wptunnel/projects/mysite

disclamier: I'm the author of the library

Upvotes: 0

Ihor Vorotnov
Ihor Vorotnov

Reputation: 1797

I've used Varying Vagrant Vagrants, which is great for WordPress development for a pretty long time, recently I've switched to Laravel's Homestead, which is also great and works fine with WordPress too.

Both are pre-made environments that are easy to install, pre-configured and ready to use. Never had any issues with them.

Upvotes: 1

Related Questions