Coder Social home page Coder Social logo

ivanishko / vagrant-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aiiddqd/vagrant-lemp

0.0 1.0 0.0 39.31 MB

Simple LEMP development stack using Vagrant for WordPress

License: MIT License

PHP 70.60% Shell 0.03% CSS 10.93% JavaScript 18.20% HTML 0.10% Smarty 0.01% Vue 0.13%

vagrant-blog's Introduction

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.

Usage

git clone https://github.com/fsylum/vagrant-boilerplate <project-name>
cd <project-name>
vagrant up

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

Credentials

MySQL root:

User: root Password: password

Additional MySQL access:

User: vagrant Password: password Database: vagrant

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.

vagrant-blog's People

Contributors

fsylum avatar ivanishko avatar uptimizt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.