GithubHelp home page GithubHelp logo

wcphx-2020's Introduction

WCPHX 2020 Reference Install
'Building Custom UX with Gutenberg and WP Roles'

Features

Coming soon......

Directory Structure

PROJECT/                        # → Root Directory
├── wp-content/                 #
│   ├── themes/                 #
│   │   └── wcphx-genesis       # → Project Theme
│   └── plugins/                #
│       └── wcphx-functions/# → Project Functionality
├── .gitignore                  # → WPE CLI Gitignore
└── composer.json               # → Installs 3rd Party Plugins

Setup Your Local Environment

  1. Install a fresh WordPress install locally. You can use MAMP, Flywheel Local, WP Engine DevKit, or other tools. We recommend one that includes WP-CLI.
  2. In the My WPEngine, go to Backup Points, select the most recent backup, and click “Download Zip”. You could download a full backup (and skip the steps below for sourcing media from production), but for large sites I like doing a partial backup excluding media. Select “Partial Backup” and check everything but “Media Uploads”. Set the email address to your own and you’ll be emailed a zip file.
  3. Copy over the appropriate files to your local WP install (themes, plugins). Do not include the mu-plugins directory; that contains WPEngine specific code.
  4. Import the database locally, using phpMyAdmin, direct SQL query or Migrate DB Pro (pulling from production).
  5. Update the URLs in the local database NOTE: Ignore this when using Migrate DB Pro. Using wp cli: wp search-replace $(wp option get siteurl) http://wp.dev/mywebsite, where the last URL is your local site’s URL. If you don’t have wp cli, try Search Replace DB.
  6. Delete the theme wp-content/themes/[theme_name] and the plugin wp-content/plugins/core-functionality.
  7. At the top level of the WordPress directory in terminal and run the following commands. This will pull down the version controlled theme and plugin.
git init
git remote add origin [email protected]:abstractwp/[repo_name].git
git pull origin pro
git fetch --all
git checkout dev

Using NPM, Composer, & WP-CLI without installation

Flywheel Local includes a variety of tools pre-installed:

  • WP-CLI
  • Composer
  • npm
  • Gulp
  • Grunt

To access, in the Local by Flywheel interface right click the install name and click open site SSH

Making Project Theme Changes

Navigate to the theme directory

cd wp-content/themes/wcphx-genesis/

Create a new branch for your changes

git checkout -b your-branch-name
git branch --track origin your-branch-name

If required run NPM

npm install
npm start

Pushing your changes

git add .
git commit -m "your awesome commit message"
git push

Making Project Plugin Changes

Navigate to the project plugin directory

cd wp-content/plugins/wcphx-functions/

Create a new branch for your changes

git checkout -b your-branch-name
git branch --track origin your-branch-name

If required run NPM

npm install
npm start

Pushing your changes

git add .
git commit -m "your awesome commit message"
git push

wcphx-2020's People

Contributors

isvictorious avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.