terminus-plugin-project / terminus-upstream-deployment-plugin
Upstream Deployment - A Terminus plugin to automate the process of updating a site through the upstream.
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 3
Type:terminus-plugin
Requires
- php: >=5.4
Requires (Dev)
README
Terminus plugin to automate the process of updating a site through the upstream. This performs a backup before applying upstream updates.
This plugin differs from terminus-mass-update as this will only take a single site at a time along with the following features:
- take a backup of your dev environment
- pull any updates from the upstream and apply them on dev
- run updatedb on your dev environment
- run clear cache on your dev environment
- check to see if your test environment initialized
- take a backup of your test environment
- run updatedb on your test environment
- run clear cache on your test environment
- check to see if youur live environment is initialized
- take a backup of your live environment
- run updatedb on your test environment
- run clear cache on your live environment
Examples
Default Running
$ terminus site:update companysite-33.dev
Skip Backups
$ terminus site:update companysite-33.dev --skip_backups
Apply updates through git using the default upstream branch
$ terminus site:update companysite-33.dev --git
Perform updates using a separate repository
$ terminus site:update companysite-33.dev --git --repo="git://github.com/pantheon-systems/drops-7.git"
Perform updates using a separate repository and a separate branch
$ terminus site:update companysite-33.dev --git --repo="git://github.com/pantheon-systems/drops-7.git" --branch="dev"
Apply updates through git using a particular branch of the upstream
$ terminus site:update companysite-33.dev --git --branch="dev"
Installation
For help installing, see Manage Plugins
mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-upstream-deployment-plugin:~1
Help
Run terminus list site:update
for a complete list of available commands. Use terminus help <command>
to get help on one command.