Bash script for starting new projects with Bedrock and Sage9. Tested with Bash & ZSH on MacOSX.
- Bedrock
- Download Bedrock
- Create default .env file
- Generate .env salts
- Create database
- Run WordPress install
- Update WordPress options
- Remove blog description
- Update start of week
- Update timezone
- Update permalink structure
- Remove default posts
- Remove default themes
- Create default homepage
- Install plugins
- Disable comments
- Sage
- Download Sage
- Replace bedrock.dev with project_name.dev in assets/config.json
- Init Git
- Run NPM install and build
- Activate theme
- Open Atom
Clone files from this repository:
git clone git@github.com:darrenjacoby/bedrock-sage-bash-setup.git bedrock-sage
Move bash script bedrock-sage.sh to /usr/local/bin:
mv bedrock-sage/bedrock-sage.sh /usr/local/bin
Using Bash:
echo 'alias bedrock-sage="bash /usr/local/bin/bedrock-sage.sh"' >>~/.bash_profile
Using ZSH:
echo 'alias bedrock-sage="bash /usr/local/bin/bedrock-sage.sh"' >>~/.zshrc
cd to the parent directory for your project (example: dev/)
cd dev/
bedrock-sage
Follow the prompts to setup Bedrock and Sage9.