Giter Site home page Giter Site logo

asap-wp's Introduction

WordPress Environment

Starting a new WordPress project? Hit the ground running and get your new WordPress repository set up ASAP!

Features

  • WordPress as a Git submodule in /wp/
  • Custom content directory in /content/ (cleaner, and also because the /wp/ submodule will be updated clearing any changes made in wp/wp-content)
  • All config files in the root
    • local-config.php
    • staging-config.php
    • wp-config.php

Prerequisites

Local PHP and MYSQL server (ex. MAMP)

Installation

Clone including submodule

git clone --recursive https://github.com/geekster909/asap-wp.git <project-name>

IF you cloned without --recursive, you must manually initialize the submodule

git clone https://github.com/geekster909/asap-wp.git <project-name>
git submodule update --init

Remove remote origin repository

git remote rm origin

Update remote origin to your new repository

git remote add origin <url>

Configuration

Update database configurations based on environment

  • local - local-config.php
  • staging - staging-config.php
  • production - wp-config.php

Updating WordPress

Check current version of submodule (WordPress)

git submodule status

Change into submodule directory

cd wp

Fetch tags (versions of WP)

git fetch --tags

Show tags (versions of WP)

git tag

Checkout tag to update working version

git checkout <tag>

Commit update

cd ..
git commit -m "WordPress Update <tag>"

Inspiration

WordPress Skeleton - Mark Jaquith

Todo

Vagrant

asap-wp's People

Contributors

justin-bond avatar

Watchers

Ramon Munoz 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.