Hey Everyone,
If you’re at all like me and prefer homestead for setting up you local environment, I created a simple “extension” for homestead that will setup a full bedrock install. Hope it’s helpful.
README.md
This script will create a roots/bedrock project in your desired directory, install composer dependencies, and install wordpress via the wp-cli tool. Works with mailhog.
For global homestead installations (not per-project installs)
Place the sh file in Homestead/scripts/site-types/
In your Homestead.yaml file, use "bedrock" as the type key for a site mapping, and the value of the `map` key as the database. Be sure to add `/web` to the end of your `to:` key for your folder mapping. The script will generate the web folder for you. E.g.:
```yaml
---
This file has been truncated. show original
bedrock.sh
#!/usr/bin/env bash
declare -A params=$6 # Create an associative array
declare -A headers=${9} # Create an associative array
declare -A rewrites=${10} # Create an associative array
paramsTXT=""
if [ -n "$6" ]; then
for element in "${!params[@]}"
do
paramsTXT="${paramsTXT}
This file has been truncated. show original
3 Likes
system
Closed
February 16, 2020, 11:21pm
2
This topic was automatically closed after 42 days. New replies are no longer allowed.