2017 © Pedro Peláez
 

project wordpress

Seravo WordPress instance template

image

seravo/wordpress

Seravo WordPress instance template

  • Wednesday, July 25, 2018
  • by Seravo
  • Repository
  • 17 Watchers
  • 53 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 22 Forks
  • 28 Open issues
  • 32 Versions
  • 0 % Grown

The README.md

Seravo.com, (*1)

Seravo WordPress project template

Brought to you by Seravo.com., (*2)

A WordPress project layout for use with Git, Composer and Nginx. It also includes a config a Vagrant box and Docker image for local development., (*3)

This same project layout is used by default on all Seravo.com instances for easy deployment workflow. Contents of this repository equals to what you would have on the server in the directory /data/wordpress/., (*4)

Documentation

Please see our documentation at https://seravo.com/docs/ on general information about git workflow with this project template., (*5)

Installation

Please see our documentation at https://seravo.com/docs/development/how-to-install/ on how to install Vagrant and its dependencies., (*6)

Features

  • Includes Nginx, MariaDB, PHP7, PHP8, Redis and Git for running WordPress in modern stack.
  • Git hooks to test your code to make sure that only high quality code is committed into git
  • Advanced WordPress acceptance tests with Codeception and headless Chrome
  • PHP Codesniffer code style and quality analyzer
  • Includes self-signed certs (and trust them automatically in OS X) to test https:// locally
  • Xdebug and Webgrind for debugging and profiling your application
  • Mailcatcher to imitate as SMTP server to debug mails
  • Adminer for a graphical interface to manage your database
  • BrowserSync as automatic testing middleware for WordPress

Credentials for vagrant

WordPress:, (*7)

user:     vagrant
password: vagrant

MariaDB (MySQL):, (*8)

user:     root
password: root

Development

The layout of this repo is designed in a way which allows storing the site in version control without exposing any confidential data. By default all sensitive data is ignored by git., (*9)

All plugins are handled by Composer so they are ignored by git. If you create custom plugins, force add them to git so that they are tracked or add new lines into .gitignore to not ignore., (*10)

Example of not ignore line in .gitignore:, (*11)

!htdocs/wp-content/plugins/your-plugin/

If you create custom themes, they are automatically tracked in git., (*12)

Best way to develop custom plugins and themes is to add them into their own repositories and install them by composer. You can do this by adding composer.json for your plugin/theme and then requiring them in your project like:, (*13)

"repositories": [
  {
      "type": "vcs",
      "url": "https://github.com/your-name/custom-plugin.git"
  }
],
"require": {
    "your-name/custom-plugin": "*"
}

Updates

Vagrant will let you know as soon as a new version of the Vagrant box is available. However, site environment will not be updated automatically to newer one., (*14)

To download and update your Vagrant box to use the newest image run:, (*15)

vagrant box update
vagrant destroy
vagrant up

Configuration

config.yml

Change name in config.yml to change your site name. This is used in quite some places in development environment., (*16)

Add production => domain and production => ssh_port to sync with your production instance., (*17)

Add new domains under development => domains before first vagrant up to have extra domains., (*18)

See config-sample.yml for more., (*19)

The Layout

The root of this repository equals the contents of the directory /data/wordpress in the Seravo.com instance., (*20)

├── config.yml # Project name, domains and other configuration
├── composer.json # Composer definition, used to pull in WordPress and plugins
├── composer.lock # Composer lock file. This is safe to delete and ignore as detailed dependency control is not relevant in WordPress.
├── gulpfile.js # Gulp example with correct paths
├── Vagrantfile # Vagrantfile for Seravo/WordPress Vagrant box
│
├── nginx # Custom modifications to Nginx which are also used in production
│   └── examples.conf # Some examples to get started
│   └── anything.conf # Your own config files can be named anything *.conf
│
├── scripts
│   ├── hooks # Git hooks for your project
│   │   ├── pre-commit # Run after every git commit
│   │   └── post-receive # Run after every git pull/push
│   │
│   ├── WordPress
│   │   └── Installer.php # Composer helper for WordPress installation
│   │
│   └── run-tests # Bash script as an interface for your tests in Seravo's production and development environments
│
├── vendor # Composer packages go here
└── htdocs # The web root of your site
    ├── wp-content # Directory moved out of WordPress core for git compatibility
    │   ├── mu-plugins
    │   ├── plugins
    │   ├── themes
    │   └── languages
    ├── wp-config.php
    ├── wp-load.php
    ├── index.php
    └── wordpress # WordPress core
        ├── wp-admin
        ├── index.php
        └── ...

Credits

  • Directory layout heavily inspired by roots/bedrock
  • Development stack inspired by VVV

Copyright Seravo Oy, 2015–2023 and contributors. Available under the GPLv3 license., (*21)

The Versions

25/07 2018

dev-master

9999999-dev https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

19/04 2018

dev-feature/docker

dev-feature/docker https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

15/09 2017

dev-fix-osx-add-trusted-cert

dev-fix-osx-add-trusted-cert https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

14/09 2017

dev-fix-travis-gulp-error

dev-fix-travis-gulp-error https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

28/05 2017

dev-dev-otto

dev-dev-otto https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

28/05 2017

dev-feature-no-languagepacks

dev-feature-no-languagepacks https://seravo.com/

Seravo WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

04/11 2016

dev-fix-license

dev-fix-license http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

14/10 2016

dev-feature-visual-regression-tests

dev-feature-visual-regression-tests http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

24/08 2016

dev-feature-custom-db-error-page

dev-feature-custom-db-error-page http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

24/07 2016

1.3

1.3.0.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer seravo

18/07 2016

dev-feature-test-screenshots

dev-feature-test-screenshots http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

15/07 2016

dev-fix-db-port

dev-fix-db-port http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

04/05 2016

dev-feature-redis-by-default

dev-feature-redis-by-default http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

22/04 2016

1.1.4

1.1.4.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

24/02 2016

dev-allow-js-errors

dev-allow-js-errors http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

27/10 2015

dev-feature-rspec-tests-for-shadows

dev-feature-rspec-tests-for-shadows http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

09/10 2015

dev-refactor-rspec-tests

dev-refactor-rspec-tests http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

01/10 2015

dev-feature-use-local-network-sharing-in-vagrant

dev-feature-use-local-network-sharing-in-vagrant http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

03/08 2015

1.1.3

1.1.3.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

15/07 2015

1.1.2

1.1.2.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

23/06 2015

1.1.1

1.1.1.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

11/06 2015

1.1

1.1.0.0 http://wp-palvelu.fi/

WP-palvelu.fi WordPress instance template

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

12/05 2015

1.0.8

1.0.8.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

09/05 2015

1.0.7

1.0.7.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

09/05 2015

1.0.6

1.0.6.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

07/05 2015

1.0.5

1.0.5.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

07/05 2015

1.0.4

1.0.4.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

06/05 2015

1.0.3

1.0.3.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

06/05 2015

1.0.2

1.0.2.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

20/04 2015

1.0.1

1.0.1.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

07/04 2015

1.0

1.0.0.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer

19/03 2015

0.8.3

0.8.3.0 http://seravo.fi

WordPress-palvelu Barebone.

  Sources   Download

MIT

The Requires

 

wordpress wp wp-palvelu composer