terminus-plugin-project / terminus-stooges-plugin
Stooges - A Terminus plugin for searching & destroying (replacing) all instances of pantheonsite.io URLs in a database.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 2
Type:terminus-plugin
Requires
- php: >=5.4
README
Note that this plugin only supports WordPress
Terminus plugin to search and destroy Platform/Vanity domains from an environment. This is an automated way of using WP CLI's search and replace functionality to ensure copies of a Pantheon URL (pantheonsite.io) are removed from content in the database.
Use Case
When taking your WordPress site live, you are often left with links pointing to live-sitename.pantheonsite.io, or other links from dev, test, multidev, or vanity domain environments. While each can be cleaned up individually, this is a time consuming process requiring multiple commands to be run. This plugin aims to simplify this process.
Examples
Replace platform and vanity domains from the dev environment
$ terminus site:stooges companysite-33.dev
Replace all platform and vanity domains from the live environment, regardless of source environment
$ terminus site:stooges:sparky companysite-33
Installation
To install this plugin place it in ~/.terminus/plugins/
.
On Mac OS/Linux:
mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-stooges-plugin:~1
Help
Run terminus help site:stooges
for help.