Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Assimilationstheorie/378defefac07b40f6fcb70091ad5fdf9 to your computer and use it in GitHub Desktop.

Select an option

Save Assimilationstheorie/378defefac07b40f6fcb70091ad5fdf9 to your computer and use it in GitHub Desktop.
Install WordPress with DDEV - Simple Installscript
#!/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