Features:
- Vanilla WordPress 6.8
Clone this repo into your Projects directory
```
git clone https://github.com/gcordner/boilerplate-wordpress wordpress
cd wordpress
```
After cloning repo, before initializing, you will want to edit the ports on .docksal/docksal.yml so that each project opens on a different port.
ie:
ports:
- "8080:8080" # Adjust fhe first port number if you have another service using 8080
-
Initialize the site
This will initialize local settings and install the site via
wp-clifin init -
Point your browser to
http://wordpress.docksal.site -
Adminer has been installed. Point your browser to
http://localhost:80**/Use whatever port you set on .docksal/docksal.yml. If you didn't set a port, it will default to 8080.
Database information (username, password, etc are all located on .docksal/docksal.env )
-
Run
fin exec composer installor:
fin bash composer install -
Verify that phpcs recognizes the WordPress coding standards by running:
fin phpcs -i -
From the root directory, run
vendor/bin/phpcs --config-set installed_paths /var/www/vendor/phpcsstandards/phpcsutils,/var/www/vendor/phpcsstandards/phpcsextra,/var/www/vendor/wp-coding-standards/wpcs -
Now you should be able to run phpcs from anywhere, BUT... first you need to get in the cli, so run:
fin bash phpcs --standard="WordPress" functions.php