From ef4a7357fb7d885b25043f4dc5bd238367ddc7b1 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Sat, 31 Aug 2024 12:42:16 +0300 Subject: [PATCH] Use docker directly --- Vagrantfile | 10 ---------- composer.json | 1 - composer.lock | 28 +--------------------------- readme.md | 4 ++-- wp-cli.yaml | 6 ------ 5 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 Vagrantfile delete mode 100644 wp-cli.yaml diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index fce2835..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,10 +0,0 @@ -# Local dev environment https://github.com/wpsh/wpsh-local - -load File.join( - File.dirname(__FILE__), - "vendor/wpsh/local/Vagrantfile" -) - -Vagrant.configure(2) do |config| - config.vm.hostname = "widgetcontext" -end diff --git a/composer.json b/composer.json index 16f0886..75a8f30 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,6 @@ "phpmd/phpmd": "^2.10", "phpunit/phpunit": "^5.7", "wp-coding-standards/wpcs": "^3.1", - "wpsh/local": "^0.2.3", "yoast/phpunit-polyfills": "^2.0" }, "autoload": { diff --git a/composer.lock b/composer.lock index aea821b..21fe3fd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0fadb104c3d43d572ed550d0ac094ff3", + "content-hash": "fb19df4a83be7051e3961e3f58303714", "packages": [], "packages-dev": [ { @@ -4131,32 +4131,6 @@ ], "time": "2024-03-25T16:39:00+00:00" }, - { - "name": "wpsh/local", - "version": "0.2.3", - "source": { - "type": "git", - "url": "https://github.com/wpsh/wpsh-local.git", - "reference": "17338432ed06386273a1ee4db8c8467aa8feab17" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wpsh/wpsh-local/zipball/17338432ed06386273a1ee4db8c8467aa8feab17", - "reference": "17338432ed06386273a1ee4db8c8467aa8feab17", - "shasum": "" - }, - "type": "library", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A Docker Compose development environment for any project.", - "support": { - "issues": "https://github.com/wpsh/wpsh-local/issues", - "source": "https://github.com/wpsh/wpsh-local/tree/master" - }, - "time": "2019-06-12T10:54:32+00:00" - }, { "name": "yoast/phpunit-polyfills", "version": "2.0.1", diff --git a/readme.md b/readme.md index 447bfa1..dcea1b7 100644 --- a/readme.md +++ b/readme.md @@ -28,9 +28,9 @@ Source of the [Widget Context plugin](https://widgetcontext.com) for WordPress. 3. Start the development environment: - vagrant up + docker compose up -d - which is available at [widgetcontext.local](http://widgetcontext.local). + which is available at [widgetcontext.localhost](http://widgetcontext.localhost). ## Screenshots diff --git a/wp-cli.yaml b/wp-cli.yaml deleted file mode 100644 index 79a2dc3..0000000 --- a/wp-cli.yaml +++ /dev/null @@ -1,6 +0,0 @@ -path: /home/vagrant/code - -config create: - dbname: homestead - dbuser: homestead - dbpass: secret