Skip to content

Wordpress boilerplate project powered by Docksal

gcordner/boilerplate-wordpress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docksal Powered WordPress Installation

Features:

  • Vanilla WordPress 6.8

Setup instructions

Clone this repo into your Projects directory

```
git clone https://github.com/gcordner/boilerplate-wordpress wordpress
cd wordpress
```

Adminer

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

Finish Setup

  1. Initialize the site

    This will initialize local settings and install the site via wp-cli

    fin init
    
  2. Point your browser to

    http://wordpress.docksal.site
    
  3. 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 )

phpcs

  1. Run

    fin exec composer install
    

    or:

    fin bash
    composer install
    
  2. Verify that phpcs recognizes the WordPress coding standards by running:

    fin phpcs -i
    
    
  3. 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
    
    
  4. 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
    

About

Wordpress boilerplate project powered by Docksal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 71.9%
  • JavaScript 19.4%
  • CSS 8.4%
  • Other 0.3%