https://github.com/terminus-plugin-project/terminus-upstream-deployment-plugin
Terminus plugin to automate the process of updating a site through the upstream. This performs a backup before applying upstream updates.
https://github.com/terminus-plugin-project/terminus-upstream-deployment-plugin
Last synced: about 1 year ago
JSON representation
Terminus plugin to automate the process of updating a site through the upstream. This performs a backup before applying upstream updates.
- Host: GitHub
- URL: https://github.com/terminus-plugin-project/terminus-upstream-deployment-plugin
- Owner: terminus-plugin-project
- Created: 2017-03-29T07:37:06.000Z (about 9 years ago)
- Default Branch: 1.x
- Last Pushed: 2018-05-09T20:12:00.000Z (about 8 years ago)
- Last Synced: 2025-02-14T22:53:04.159Z (over 1 year ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terminus Upstream Deployment Plugin
[](https://circleci.com/gh/terminus-plugin-project/terminus-upstream-deployment-plugin/tree/1.x)
[](https://github.com/terminus-plugin-project/terminus-upstream-deployment-plugin/tree/1.x)
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](https://github.com/pantheon-systems/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](https://pantheon.io/docs/terminus/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 ` to get help on one command.