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 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.
When a new theme is built out from Sage, the JSON variables referencing the path/URL need to be changed manually. This should be automatic. See: http://stackoverflow.com/a/27714690/3590673
Provide an option to install ACF pro by means of composer. 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.
#References