Created
June 23, 2019 19:25
-
-
Save Assimilationstheorie/378defefac07b40f6fcb70091ad5fdf9 to your computer and use it in GitHub Desktop.
Install WordPress with DDEV - Simple Installscript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| read -r -p "Install WordPress with DDEV? [y/n]" response | |
| if [[ "$response" = "y" ]] | |
| then | |
| echo "$(tput setaf 1)Install WordPress...$(tput sgr0)" | |
| ddev config --project-type=php | |
| ddev composer create wordpress/skeleton --no-interaction --prefer-dist | |
| ddev config --docroot=wp --project-type=wordpress | |
| ddev restart | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment