This script:
- Sets up a directory and environment for your project
- Downloads and installs a Bedrock project to your new project directory
- Can be either a subdirectory of localhost (for dev) or a standalone URL (for dev, staging or production)
- Generates (pseudo) random salts internally without calling to the WP secret key generator
- Generates strong passwords for the database and the first WordPress admin user
- Creates a new project database
- Configures database for WordPress (using WP-CLI)
- Builds the Bedrock config (.env) with DB connection, environment etc.
- Optionally install & setup a new WP theme based on Sage (using Composer)
- Optionally install Sage Soil plugin (using Composer)
- Optionally create and enable an Apache virtual host configuration ('standalone' URL only)
- Optionally create a new GitHub repo for your project and make a first commit
- Clone this repo to a suitable location
- Create a symlink to
bedrock-spin
in your $PATH - Run the script
Example symlink creation:
sudo ln -s ~/public-bash-projects/bedrock-spin/bedrock-spin /usr/local/bin/bedrock-spin
# Run the script by entering `bedrock-spin` in a terminal.
The script provides an option for setting up a custom theme based on the Sage starter theme.
When prompted for a BrowserSync URL, you should enter your development URL (which will have been previously configured by means of this script).
For development on Linux LAMP stack, you need to amend /etc/hosts
file after setup. Set the development URL that you set to reference your localhost IP address:
# /etc/hosts
# Local Dev
127.0.0.1 your-dev-site.local
Provide an option to install ACF pro by means of composer.
This will need to add the ACF token to .env
and install philippbaschke/acf-pro-installer
Composer package.
https://github.com/PhilippBaschke/acf-pro-installer
Provide an option to install Carawebs themehelper into the new theme (Composer)
Provide an option to install via Composer.