Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDEV improvments #980

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .ddev/cart-block.txt

This file was deleted.

45 changes: 0 additions & 45 deletions .ddev/checkout-block.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

wp plugin install wordpress-importer --activate
wp import ../sample_products.xml --authors=skip
wp import ../wordpress/wp-content/plugins/woocommerce/sample-data/sample_products.xml --authors=skip
3 changes: 0 additions & 3 deletions .ddev/commands/web/orchestrate.d/32_woocommerce_blocks.sh

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

wp wc tool run install_pages --user="admin"
wp post create --post_content='<!-- wp:woocommerce/classic-shortcode {"shortcode":"checkout"} /-->' --post_title='Classic Checkout' --post_type=page --post_status=publish --menu_order=21
wp post create --post_content='<!-- wp:woocommerce/classic-shortcode /-->' --post_title='Classic Cart' --post_type=page --post_status=publish --menu_order=20
23 changes: 10 additions & 13 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
name: mollie-payments-for-woocommerce
type: wordpress
type: php
docroot: .ddev/wordpress
php_version: "7.4"
webserver_type: nginx-fpm
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
database:
type: mariadb
version: "10.3"
type: mariadb
version: "10.3"
nfs_mount_enabled: false
mutagen_enabled: false
hooks:
post-start:
- exec-host: .ddev/bin/dump-compose-config
- exec-host: ddev describe -j | SOURCE_NAME=$DDEV_PROJECT .ddev/bin/setup-ide-datasource.php
pre-start:
- exec-host: mkdir -p .ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}
pre-start:
- exec-host: "mkdir -p .ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}"
use_dns_when_possible: true
composer_version: "2"
web_environment:
- BASEURL=https://fd8d-88-17-29-100.ngrok-free.app
- WP_VERSION=6.1
#- BASEURL=https://fd8d-88-17-29-100.ngrok-free.app
- WP_VERSION=6.7.1
- WP_LOCALE=en_US
- WP_TITLE=Mollie WordPress Test
- PLUGIN_NAME=mollie-payments-for-woocommerce
- ADMIN_USER=admin
- ADMIN_PASS=admin
- [email protected]
- WC_VERSION=7.2.2
nodejs_version: "16"
- WC_VERSION=9.5.1
nodejs_version: "22"

# Key features of ddev's config.yaml:

Expand Down
7 changes: 2 additions & 5 deletions .ddev/docker-compose.wp-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
version: '3.6'
services:
web:
volumes:
- source: ../
target: /var/www/html/.ddev/wordpress/wp-content/plugins/mollie-payments-for-woocommerce
type: bind
volumes:
- ../:/var/www/html/.ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}:ro
Loading
Loading