Skip to content

kohactive/sage-but-better

Repository files navigation

WordPress

Project Initialization

  1. Clone the repo:

    git clone git@github.com:kohactive/sage-but-better.git <project-name>
    cd <project-name>
    rm -rf .git
    git init
    
  2. Change the root and theme directory names to <project-name>

  3. Find and replace <project-name> with the project name used in step 2

  4. Add a <description> above

  5. Add the Migrate DB Pro connection information below

  6. Add GitHub issue for launch checklist:

- [ ] favicon
- [ ] seo
- [ ] sitemap
- [ ] test contact form
- [ ] make sure "discourage search engines from indexing this site" is unchecked
  1. Remove this section from this readme

Environment Setup

  1. Create local database: wp_<project-name>
  2. "Save as" wp-config-local-sample.php to wp-config-local.php
  3. Change variables to match your setup

Installation

  1. git clone git@github.com:kohactive/<project-name>.git
  2. Navigate your browser to the local site: http://localhost/
  3. Follow the WordPress install instructions
  4. Activate Migrate DB Pro(license key is in 1password)
  5. If the project is not already set up and on staging:
  • Activate Advanced Custom Fields
  • Import wp-content/themes/<project-name>/lib/acf-options.json
  1. If the project is already set up and on staging:
  • Pull from staging(connection string below)
  1. cd /path/to/<project-name>
  2. If you don't have the Gulp cli installed: sudo npm install gulp-cli -g
  3. ./install.sh

Development

./development.sh
To watch for changes:
./watch.sh

Staging

dev-.pantheonsite.io
Deploy:

git remote add pantheon <pantheon-git-url>
./deploy.sh <branch-name>

Database

Migrate DB Pro

  • set up local dev install to pull staging db
  • DO NOT PUSH TO STAGING. MAKE DB EDITS ON STAGING & PULL.

Connection info:

<staging wp admin connection info>

Base Theme

Sage docs

About

The modified version of Sage we use at kohactive that includes: JS, Sass, & Pantheon deployment helpers

Resources

License

Stars

Watchers

Forks

Packages

No packages published