Skip to content

adamslowe/ddev-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DDEV WordPress Automation

A shell script to automate the creation and configuration of WordPress development environments using DDEV.

Features

  • Interactive project setup with input validation
  • Configurable PHP version
  • Optional Adminer database management addon
  • Automated WordPress core installation
  • Theme and plugin management (removes default themes/plugins, installs Twenty Twenty-Five)
  • Configurable WordPress settings:
    • Security configurations (disable file editing, automatic updates)
    • Performance optimizations (script/CSS compression, GZIP)
    • Timezone and date settings
    • Discussion and comment settings
    • Permalink structure
  • Optional theme unit test data import
  • Optional automatic snapshots on project stop
  • HTTPS configuration

Prerequisites

  • DDEV installed and working
  • Shell environment (bash, sh, zsh, etc.)

Usage

./automate-ddev.sh

Follow the interactive prompts to configure your WordPress project:

  1. Project name - Letters, numbers, and hyphens only
  2. PHP version - Leave blank for default or specify a version
  3. Adminer addon - Database management tool (default: Yes)
  4. Snapshot on stop - Automatic backups when stopping the project (default: No)
  5. Site title - Display name for your WordPress site
  6. Admin username - WordPress administrator username
  7. Admin password - WordPress administrator password (default: password)
  8. Change WordPress options - Apply preferred WordPress settings (default: Yes)
  9. Change page settings - Configure default pages and posts (default: Yes)
  10. Install test data - Import WordPress theme unit test data (default: No)

Default Configurations

WordPress Config Settings

  • Automatic updates disabled
  • File editing disabled in dashboard
  • Script and CSS compression enabled
  • GZIP compression enabled
  • Memory limit: 256M
  • Environment type: development

WordPress Options (if enabled)

  • Timezone: America/New_York
  • Week starts on: Sunday
  • RSS uses excerpts
  • Search engine visibility: discouraged
  • Pingbacks: disabled
  • Comments: closed by default, moderation required
  • Permalinks: /%postname%/

Default Pages (if enabled)

  • Creates "Home" and "Articles" pages
  • Sets Home as front page and Articles as posts page
  • Renames "Uncategorized" category to "General"
  • Renames default privacy policy page

Default Credentials

  • Admin email: admin@{projectname}.site
  • Admin password: password (configurable during setup)

Project Access

After successful setup, the script automatically launches the WordPress admin dashboard at:

https://{projectname}.ddev.site/wp-admin/

Planned Features

  • Add more options for the WordPress installation
  • All-in-one DDEV management functionality

License

This project is provided as-is for development purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages