-
Open MAMP in Applications and ensure local servers are running
-
Create a new database by clicking
phpMyAdmin
in the WebStart page or navigating there if the WebStart page doesn't come up automatically (this setting can be adjusted under Start/Stop preferences in MAMP). -
Click the
Databases
tab -
In the "Create database" field, enter a unique local database name. Ideally, name the local database the same thing as what the production database is expected to be. Click
Create
. -
Unzip the new WordPress zipfile acquired from the download and place it in the directory the MAMP server is pointing is pointing to.
-
In a browser, navigate to
localhost:8888
(or whichever port has been specified in the Apache Port field of the MAMP Ports settings). If the expected directory is not visible, check that the Web Server settings in MAMP are pointing to the correct directory. -
In the browser, click the directory of the project theme to be built and follow the prompts to install WordPress.
-
When prompted, enter the following information to populate the database:
- Database Name: [name chosen in step 4]
- User Name:
root
- Password:
root
- Database Host:
localhost
- Table Prefix:
wp_
-
Once the WordPress Welcome screen is reached, input desired site title, create a username and password, include an email address, and check the box next to Discourage search engines from indexing this site. Be sure to make a note of the username and password selected, especially if the Password is auto-created.
-
Follow the prompts to login.
-
Ensure Composer is installed.
-
Run
php composer.phar create-project roots/sage new-theme-name 8.5.3
(specifiy Sage version at the end of the command, current build as of 10/10/17 is 8.5.3 with v.9 forthcoming). -
Note theme functionallity and workflow docs.
-
Once the them is installed and running locally, these commands can be used to compile the
assets/
directory to thedist/
directory for production.
-
In the WordPress dashboard, install the Timber Library and ACF.
-
Download or clone the theme.
-
Review Timber docs for theming, guides, and reference.
When hosting using WP Engine, utilize the Git Push functionallity to deploy.
-
Generate a new SSH key if there are no existing keys present. It is likely that a key already exists; a new one will likely not need to be generated.
-
Copy new/existing public SSH Key - run
pbcopy < ~/.ssh/id_rsa.pub
in the terminal (it will be available on the machine's clipboard). -
Login to the project WP Engine dashboard. Click "Git Push" and paste the SSH key into the textarea
SSH public key
. When selecting aDeveloper name
, be aware that WP Engine will remember your SSH key from install-to-install, so create a name accordingly. -
Wait about 10 minutes (actual times can vary widely: from a few minutes to 24 hours) and confirm access by running
ssh git@git.wpengine.com info
from the terminal. -
Add both production and staging remotes:
git remote add production git@git.wpengine.com:production/my_wp_install_name.git
git remote add staging git@git.wpengine.com:staging/my_wp_install_name.git
- Check both have been successfully added:
git remote -v
:
production git@git.wpengine.com:production/my_wp_install_name.git (fetch)
production git@git.wpengine.com:production/my_wp_install_name.git (push)
staging git@git.wpengine.com:staging/my_wp_install_name.git (fetch)
staging git@git.wpengine.com:staging/my_wp_install_name.git (push)
-
To deploy to staging run
git deploy staging master
-
To deploy to production run
git deploy production master
-
Login to the WP Engine dashboard and select the install to copy.
-
Click Backup points in menu on the left.
-
Click
Deploy Site
and follow the instructions to specify which install backup point to duplicate, which install to copy it to, and if the database should be included or not.
-
Login to the WP Engine dashboard and select the install to copy.
-
Click Backup points in menu on the left.
-
Select a backup point and click Download ZIP. The package will contain all WordPress core files, themes and plugins, and database.
-
Login to the WP Engine dashboard and select the install to copy.
-
Click Site migration in menu on the left.
-
Use the video and SFTP information on the page to complete site transfers