Backend Setup
Create new site on Pantheon
- Log into the Dashboard
- Click the "Create New Site" button
- Name the new site, and make sure "SeaMonster Studios" is the organization selected.
- Deploy the SeaMonster Studios Custom Headless Upstream
- From the dashboard of the new site, click the "Install Wordpress" button and complete the install.
Setup WordPress
- Use git to clone the newly created site to your local machine.
- In your terminal, run the install script from within the site's root directory. This will install the custom child theme (and rename it to match the production domain name) as well as our WP plugins
bash install.sh -d the-production-domain.com
Commit all your changes in git, and push those changes back to pantheon.
Change the Development Mode in pantheon to SFTP, then log into the Site Admin
Activate all of the plugins. (You don't need to activate the JWT plugin if you're not sure you'll be using it yet.)
- If you're going to use JWT authentication (i.e. to use Gravity Forms) add these items to the wp-config.php in the repo.
define('JWT_AUTH_SECRET_KEY', 'SECURE_STRING_HERE'); define('JWT_AUTH_CORS_ENABLE', true);
Replace
SECURE_STRING_HERE
, with any string from hereActive the child theme
Activate pre-configured Custom Fields
- Click on Custom Fields in the sidebar
- Click on the Sync available link.
- Check all items, click Sync from the Bulk Actions menu, and then click Apply