Skip to content

BASH script to deploy a WordPress Bedrock project.

License

Notifications You must be signed in to change notification settings

cbrcongit/bedrock-spin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spin up a Bedrock Project

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

Requirements

Get Started

  1. Clone this repo to a suitable location
  2. Create a symlink to bedrock-spin in your $PATH
  3. 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.

TODO

Change JSON variables

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

ACF

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

Carawebs Themehelper

Provide an option to install Carawebs themehelper into the new theme (Composer)

Carawebs Address

Provide an option to install via Composer.

#References

About

BASH script to deploy a WordPress Bedrock project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%