Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

michaelbragg/eventsnorthwest.co.uk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Events North West

http://www.eventsnorthwest.co.uk/

Project URLS

Dependencies

  • GIT
  • VirtualBox
  • Vagrant

On-boarding – Getting Started

The section assumes you have GIT, VirtualBox and Vagrant set up. You may need to adjust as needed for your local development system.

Install

Clone this repository into your development area:

git clone https://github.com/trinitymirror/eventsnorthwest.co.uk.git eventsnorthwest.co.uk
cd eventsnorthwest.co.uk

Run Vagrant:

vagrant up

View the development site

Visit http://www.eventsnorthwest.co.uk to view the development site.

Testing Your Changes

Our test suite is run on every commit pushed to this repository.

Updating WordPress and Plugins

To upgrade to the latest PATCH versions of WordPress or its plugins re-provision Vagrant by running vagrant provision from your command line.

Upgrading to a MAJOR or MINOR version you will need to manually update require and require-dev sections of the composer.json file and re-provision Vagrant by running vagrant provision from your command line.

After testing the new version(s) commit the updated composer.json and composer.lock files back the the repository for deployment.

Making Your Changes

Make your changes locally on a new branch based off origin/master. Push your changes to this repository to perform our tests.

Deploying to our Staging Server

Once our tests are passed, create a pull request to merge into our develop branch. After approval and merging this will be deployed to our staging server.

Deploying to our Live Server

If you are happy with your changes. Create a pull request to merge your original branch into master (not develop). On merge this will start the deployment process to our live server.

Documentation

During the Alpha/Beta stages, due to constant changes, documentation will be mainly written in-line. With a dedicated section being created at the first major release.

Folder Structure

├── composer.json
├── config
│   ├── application.php
│   └── environments
│       ├── development.php
│       ├── staging.php
│       └── production.php
├── html
│   ├── app
│   │   ├── mu-plugins
│   │   ├── plugins
│   │   ├── themes
│   │   └── languages
│   ├── media
│   ├── wp-config.php
│   ├── index.php
│   └── wp
├── scripts
└── vendor
  • In order not to expose sensitive files in the webroot, we move what's required into a html/ directory including the vendor'd wp/ source, and the wp-content source.
  • wp-content has been named app to better reflect its contents. It contains application code and not just "static content". It also matches up with other frameworks such as Symfony and Rails.
  • wp-config.php remains in the web/ because it's required by WordPress, but it only acts as a loader. The actual configuration files have been moved to config/ for better separation.
  • vendor/ is where the Composer managed dependencies are installed to.
  • wp/ is where the WordPress core lives. It's also managed by Composer but can't be put under vendor due to WP limitations.
  • uploads has been named media and moved outside the app folder to better separate code and "static" content.
  • scripts/ hold the bash scripts used for setting up and running tasks on the environment.

Reporting Issues

If you spot any issues please create a ticket via GitHub's Issue Tracker. including the issue, the browser and operating system, and how to replicate it. If the issue is security related please use the contact information below.

Contributing to this project

In lieu of a formal style guide, take care to maintain the existing coding style.

Contact

Trinity Mirror Creative - [email protected]

Copyright

Unless otherwise stated © Trinity Mirror. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 35.8%
  • CSS 22.6%
  • Java 19.1%
  • PHP 18.9%
  • HTML 2.1%
  • ApacheConf 1.3%
  • Shell 0.2%