Coder Social home page Coder Social logo

varying-vagrant-vagrants / custom-site-template-develop Goto Github PK

View Code? Open in Web Editor NEW
7.0 10.0 14.0 133 KB

A VVV site template for working on WordPress Core development. For client development use the custom-site-template instead

Shell 100.00%
wordpress vagrant varying-vagrant-vagrants vvv

custom-site-template-develop's Introduction

VVV Custom site template (WP Core development)

This site template is a great way to test the bleeding edge versions of WordPress, or contribute to development of WordPress core. Ideal for contributor days, Trac tickets, etc

For general WP work such as theme building or plugin development, use the normal custom site template instead. Only use this if you want the bleeding edge trunk version of WordPress.

Overview

This template will allow you to create a WordPress core dev environment running wordpress trunk using only config/config.yml.

The supported environments are:

  • A single site
  • A subdomain multisite
  • A subdirectory multisite

Pulling In Updates

This template will attempt to update on provision, but if that fails, you can enter the public_html folder and manually update. This can be done using svn up if SVN is used, and git pull if git is used. GUI tools such as TortoiseSVN, Visual Studio Code, and other GUIs, can be used to update the folder too.

Switching from SVN to Git

vagrant ssh
cd /srv/www/[wordpress-trunk] # the folder name 
./bin/develop_git

Running this command will convert an svn based checkout to git and will require some time to run.

Configuration

Options

Key Default Description
db_name The sites name The name of the MySQL database to create and install to
site_title The first host of the site The title of the site after install
vcs svn The type of WP checkout to make when first creating the site, valid values are svn and git
wp_type single Defines what kind of site gets installed, subdomain subdirectory or single are valid values
npm true Execute NPM during the provision

The Minimum Required Configuration

my-site:
  repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop
  hosts:
    - my-site.test

This settings will use as default SVN to download WordPress-develop but it is possible to switch to git:

Site in config.yml Setting Value
my-site:
  repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop
  hosts:
    - my-site.test
  custom:
    vcs: git # using 'svn' will force this vcs
Domain my-site.test
Site Title my-site.test
DB Name my-site
Site Type Single

WordPress Multisite with Subdomains

my-site:
  repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop
  hosts:
    - multisite.test
    - site1.multisite.test
    - site2.multisite.test
  custom:
    wp_type: subdomain
Setting Value
Domain multisite.test
Site Title multisite.test
DB Name my-site
Site Type Subdomain Multisite

Configuration Options

hosts:
    - foo.test
    - bar.test
    - baz.test

Defines the domains and hosts for VVV to listen on. The first domain in this list is your sites primary domain.

custom:
    site_title: My Awesome Dev Site

Defines the site title to be set upon installing WordPress.

custom:
    wp_type: single

Defines the type of install you are creating. Valid values are:

  • single
  • subdomain
  • subdirectory
custom:
    db_name: super_secet_db_name

Defines the DB name for the installation.

custom-site-template-develop's People

Contributors

loreleiaurora avatar mte90 avatar tobiasziegler avatar tomjn avatar widoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.