{"id":18278768,"url":"https://github.com/terminus-plugin-project/terminus-hotfix-plugin","last_synced_at":"2025-04-09T04:42:09.677Z","repository":{"id":57066868,"uuid":"136085970","full_name":"terminus-plugin-project/terminus-hotfix-plugin","owner":"terminus-plugin-project","description":"A Terminus Plugin that adds command(s) to facilitate a hotfix workflow for Pantheon sites.","archived":false,"fork":false,"pushed_at":"2019-07-10T18:35:39.000Z","size":898,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T23:16:40.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terminus-plugin-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-04T21:40:49.000Z","updated_at":"2018-06-28T15:21:45.000Z","dependencies_parsed_at":"2022-08-24T14:54:03.055Z","dependency_job_id":null,"html_url":"https://github.com/terminus-plugin-project/terminus-hotfix-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-hotfix-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-hotfix-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-hotfix-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-hotfix-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terminus-plugin-project","download_url":"https://codeload.github.com/terminus-plugin-project/terminus-hotfix-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980822,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T12:26:03.511Z","updated_at":"2025-04-09T04:42:09.656Z","avatar_url":"https://github.com/terminus-plugin-project.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminus Hotfix Plugin\n\nA [Terminus](http://github.com/pantheon-systems/terminus) plugin that adds the commands to facilitate hotfix workflows on [Pantheon](https://pantheon.io/) sites.\n\n## Demo Video\n\n[![Terminus Hotfix Plugin Demo Video](assets/terminus-hotfix-plugin-repo-ss-with-play-button.png?raw=true)](https://youtu.be/T9ukNUGLXnE \"Terminus Hotfix Plugin Demo Video\")\n\n## Disclaimer\n\nWhile this plugin has worked well for us your mileage may vary due to local machine configuration. This repository is provided without warranty or direct support. Issues and questions may be filed in GitHub but their resolution is not guaranteed.\n\n## Installation\n\nClone this project into your Terminus plugins directory found at `$HOME/.terminus/plugins`. If the `$HOME/.terminus/plugins` directory does not exists you can safely create it. You will also need to run `composer install` in the plugin directory after cloning it. See [installing Terminus plugin](https://pantheon.io/docs/terminus/plugins/#install-plugins) for details.\n\n## Purpose\n\nA hotfix is the only way to push code directly to Live without having to go through Dev and Test. Any damage to the source code will be the responsibility of the user. The intended use case is for critical security releases or bug fixes that need to be deployed as quickly and easily as possible. Hotfixes should be used with care and only in emergency situations. Hotfixes should be the exception, not the norm.\n\nCurrently hotfix deployments, emergency updates to test/live that skip the normal workflow and potentially undeployed code in `master`, need to be done manually and require more advanced git skills. See the [hotfix doc](https://pantheon.io/docs/hotfixes/) for details. This plugin aims to make that process easier.\n\n## Requirements\n\n* [Terminus](https://github.com/pantheon-systems/terminus) `1.8.0` or greater\n* [git command line](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n\n## Commands\n\n* `terminus hotfix:env:git-ref \u003csite\u003e.\u003cenv\u003e` - returns the deployed git reference of the specifiied environment.\n* `terminus hotfix:env:create \u003csite\u003e.\u003cenv\u003e \u003cmultidev\u003e` - creates a new \u003cmultidev\u003e environment for the site \u003csite\u003e with code, database and files from the \u003cenv\u003e environment by checking out the lastest git tag associated with \u003cenv\u003e environment.\n* `terminus hotfix:env:deploy \u003csite\u003e.\u003cenv\u003e \u003cmultidev\u003e` - deploy the changes from the specified \u003cmultidev\u003e environment directly to \u003cenv\u003e for the site \u003csite\u003e, skipping the normal workflow, and rebase the changes back to the `master` branch/dev environment.\n\n## License\n\nMIT\n\n## Known Issues\n\n* `terminus hotfix:env:deploy` will fail on environments that have had a backup restored **without** a code deployment since the backup.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterminus-plugin-project%2Fterminus-hotfix-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterminus-plugin-project%2Fterminus-hotfix-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterminus-plugin-project%2Fterminus-hotfix-plugin/lists"}