ivanishko / country-wp

Project girey_ru

Home Page:http://girey.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrant Boilerplate

This is a personal Vagrant setup that I use for each project that I manage. It's basic LEMP stack on Ubuntu 16.04 with a few additions such as Composer, Node.js and WP-CLI ready at the get-go.

Requirement

Note: Vagrant::Hostsupdater is optional to automatically add the entry to the hosts file. If you skip that, you will need to manually edit the hosts file and add the related entry yourself.

If you are using Windows, you may need to enable hardware virtualization (VT-x). It can usually be enabled via your BIOS. If you are using Hyper-V on a UEFI system you may additionally need to disable Hyper-V in order to access VT-x.

All Vagrant commands like vagrant halt, vagrant destroy and vagrant suspend are applicable.

FAQ

How disable password for everyday start VM on macOS and Linux?

For add domains in /etc/hosts - need sudo password. You can change Vagrantfile, replace random on static ip address After that uncomment the command:

# config.hostsupdater.remove_on_suspend = false

What's Included?

Directory Structure

  • config - Contains all services related configuration, please modify it accordingly to your usage.
  • logs - Contains all the logs generated from nginx as well as PHP errors.
  • www - The web root of your web application.

Domains

By default, the site is accessible by using parent directory name as domain name with .lh tld. For example, if the boilerplate is installed inside foobar directory, the site then will be accessible on http://foobar.lh, Additionally, two subdomains will be available as shortcut to phpMyAdmin and Mailhog respectively:

Why another boilerplate?

VVV is a fantastic Vagrant setup, where much of the provisioning of this setup is based on. However, VVV provides lot of things out of the box which I don't necessarily require in my development workflow, plus it is catered more on WordPress development. On the other hand, I would only need a simple LEMP stack, that also works well on my Windows machine.

Credits

VVV team for an awesome Vagrant setup.

country-wp

About

Project girey_ru

http://girey.ru

License:MIT License


Languages

Language:PHP 65.0%Language:JavaScript 26.7%Language:CSS 8.1%Language:HTML 0.3%Language:Shell 0.0%Language:Hack 0.0%