Automated WordPress development and deployment pipeline for Digital Ocean. Develop locally with Docker, deploy to production with one command.
-
Identical Stack to DO: Ubuntu 22.04, Apache 2.4.52, PHP 8.3, MySQL 8.0.42
-
Custom Theme: Ready-to-develop theme in
wp-content/themes/my-custom-theme/ -
Custom Post Types Plugin: Portfolio and Testimonials CPTs
-
One-Click Deployment: Automated migration script to Digital Ocean
-
Environment-Aware Config: wp-config.php works on both local and production
-
Try SEO Grove: SEO Grove
-
Join my Skool to say thanks: My Skool
# Clone the repository
git clone https://github.com/IncomeStreamSurfer/wordpress-claude-code-wizard.git
cd wordpress-claude-code-wizard
# Copy and configure .env
cp .env.example .env
# Edit .env and add your Digital Ocean API token# Start WordPress locally
docker-compose up -d
# Access at http://localhost
# phpMyAdmin at http://localhost:8080# One-time SSH setup
./setup_ssh_and_deploy.sh
# Create droplet and deploy
python3 create_droplet_with_ssh.py
# Wait 5-10 minutes for installation
# Then migrate your local WordPress
./migrate_now.sh- Theme files:
wp-content/themes/my-custom-theme/ - Changes are reflected immediately (no restart needed)
- Plugin files:
wp-content/plugins/custom-post-types/ - After activation, you'll see Portfolio and Testimonials in the admin menu
After deployment:
- Your site is live at
http://YOUR_DROPLET_IP - Point your domain's A record to the droplet IP
- Set up SSL:
ssh -i ~/.ssh/wordpress_deploy root@YOUR_IP certbot --apache
.
├── docker-compose.yml # Docker configuration
├── Dockerfile # Custom Apache/PHP image
├── wp-config.php # Environment-aware config
├── .htaccess # Apache rules
├── setup_ssh_and_deploy.sh # SSH key setup
├── create_droplet_with_ssh.py # Droplet creation
├── migrate_now.sh # Migration script
├── wp-content/
│ ├── themes/
│ │ └── my-custom-theme/ # Your custom theme
│ └── plugins/
│ └── custom-post-types/ # CPT plugin
└── .claude/ # Claude's workflow memory
Local Development:
- Host: localhost:3306
- Database: wordpress
- User: wordpress
- Password: wordpress_password
phpMyAdmin: http://localhost:8080
- Docker & Docker Compose
- Python 3 with pip
- Digital Ocean account with API token
- 10-15 minutes for complete deployment
- Change all default passwords before production
- Update
wp-config.phpsalts (done automatically during deployment) - Enable firewall on Digital Ocean:
ufw allow 22,80,443/tcp && ufw enable - Keep WordPress, themes, and plugins updated
- Docker provides identical environment to production
- SSH keys are automatically configured for passwordless access
- Cloud-init installs WordPress on the droplet
- Migration script transfers your themes, plugins, and content
- URL updates are handled automatically
From local development to live production in minutes!