git remote add wpe-prod git@git.wpengine.com:production/usenergynews.git
git remote add wpe-staging git@git.wpengine.com:staging/usenergynews.git
This repository is designed to be set up in accordance with the VVV install instructions in INN/docs, that were introduced with INN/docs#148
vv create
Prompt | Text to enter |
---|---|
Name of new site directory: | usenergynews |
Blueprint to use (leave blank for none or use largo): | largo |
Domain to use (leave blank for largo-umbrella.test): | usenergynews.test |
WordPress version to install (leave blank for latest version or trunk for trunk/nightly version): | hit [Enter] |
Install as multisite? (y/N): | N |
Install as subdomain or subdirectory? : | subdomain |
Git repo to clone as wp-content (leave blank to skip): | hit [Enter] |
Local SQL file to import for database (leave blank to skip): | This directory must be an absolute path, so the easiest thing to do on a Mac is to drag your mysql file into your terminal window here: the absolute filepath with fill itself in. |
Remove default themes and plugins? (y/N): | N |
Add sample content to site (y/N): | N |
Enable WP_DEBUG and WP_DEBUG_LOG (y/N): | N |
After reviewing the options and creating the new install, partake in the following steps:
cd
to the directoryusenergynews/
in your VVV setupgit clone git@github.com:INN/umbrella-usenergynews.git
- Copy the contents of the new directory
umbrella-usenergynews/
intohtdocs/
, including all hidden files whose names start with.
periods.
This is a series of notes of what had to be done to get the db working:
fab vagrant.reload_db:usenergynewsdb_dev__2016-09-19__3-21\ PM.sql,usenergynews
- open
wp-config.php
, disable all multisite lines wp user
command to update our user with the password from 1pass- in Sequel Pro, change the site's domain and home in
wp_options
to http://usenergynews.dev/ - Follow instructions on https://codex.wordpress.org/Create_A_Network to convert the singlesite database to a multisite database, including progressively enabling the lines in
wp-config.php
- Perform database replacements:
- in
wp_blogs
, set domain tousenergynews.wpengine.com
- in
wp_site
, set domain tousenergynews.wpengine.com
- in
wp_options
, set siteurl and home tohttp://usenergynews.wpengine.com/
- in
wp_sitemeta
, set siteurl and home tohttp://usenergynews.wpengine.com/
- in
- Get WPE to upload the DB
- Log into the network admin, and do the following:
- Network Enable the Largo base theme
- enable the Fresh Energy theme for the Fresh Energy site
- Go to the Fresh Energy dashboard
- Activate the Fresh Energy theme that's a Largo child
- In Settings > Reading, change "Front page displays" to "Your latest posts"
cd
to the base directory of your Laravel setupgit clone git@github.com:INN/umbrella-usenergynews.git usenergynews
- Install WordPress
yo wordpress
Prompt | Text to enter |
---|---|
Wordpress URL: | usenergynews.test |
Table prefix: wp_ | |
Database host: | localhost |
Database name: | usenergynews |
Database user: | |
Database password: | |
Use Git: | No |
Custom dir structure: | No |
Custom theme: | No |
After reviewing the options and creating the new install, partake in the following steps:
wp core install
wp db import mysql.sql
See migration.md.