VVV logo VVV

Core Site Provisioner

The main site provisioner script.

Overview

A script executed as a provisioner that provisions a site. This includes cloning its provisioner template, installing and processing Nginx config files, running setup scripts, etc This script takes several arguments:

Index

vvv_get_site_config_value

Retrieves a config value for the given site as specified in config.yml

Arguments

get_config_value

Takes 2 values, a key to fetch a value for, and an optional default value

Example

echo $(get_config_value 'key' 'defaultvalue')

Arguments

See also

get_hosts

Retrieves a list of hosts for this site from the config file. Internally this relies on shyaml get-values-0

Function has no arguments.

Output on stdout

See also

get_hosts_list

Retrieves a list of hosts for this site from the config file. Internally this relies on shyaml get-values

Function has no arguments.

Output on stdout

See also

get_primary_host

Retrieves the first host listed for a site.

Function has no arguments.

Output on stdout

See also

vvv_custom_folder_composer

Processes a folder sections composer option for a site as specified in config.yml

Arguments

vvv_custom_folder_npm

Processes a folder sections npm option for a site as specified in config.yml

Arguments