Comments (3)
@erikhansen I'm not sure how soon I could implement and have the time to test this. If you were able to put together a PR, I would love to see this brought in!
Since it'd be adding a dependency, you'd want to make sure capistrano-pending is listed in capistrano-magento2.gemspec
similar to how terminal-notifier is, and also run bundler
to update the Gemfile.lock so that could be committed as well (that one is mostly for dev purposes).
Would you see this check coming before or after the deploy prompt I've got implemented (just asking for yes/no confirmation before it runs for an env named either 'prod' or 'production')?
from capistrano-magento2.
Would you see this check coming before or after the deploy prompt I've got implemented (just asking for yes/no confirmation before it runs for an env named either 'prod' or 'production')?
I am planning on setting up the deploy:pending
output to run before the production deploy prompt. My thought process around this is that showing the user the pending change log before asking them whether they want to deploy will allow them to determine whether the branch they're deploying has the appropriate changes in it. The only downside to this is that the deploy:pending
command can sometimes take 10-15 seconds to output any content, so the user might switch away from Terminal without realizing that the deploy won't continue unless they explicitly confirm that they want to deploy to production.
Even when I haven't had a deploy:pending
check in place, there have been several times where I've forgotten about a production deploy prompt and have switched back to Terminal minutes later, only to find out that my cap prod deploy
command was not running as I failed to confirm that I wanted to deploy to production.
One thought about how to avoid the issue with users missing the production deploy prompt would be to trigger an OS X notification like "Are you sure you want to deploy to <STAGE>"
. terminal-notifier supports removing notifications (see the -remove flag), so that notification could be removed once the user entered "y" or "N".
Would you accept two separate PRs that:
- Adds the
deploy:pending
check before the production deploy prompt - Displays a
"Are you sure you want to deploy to <STAGE>"
notification that would be dismissed when the user answered the prompt
from capistrano-magento2.
Available in 0.4.0. Closing. See PR for details.
from capistrano-magento2.
Related Issues (20)
- Do not run show pending updates when capistrano is outside magento git repo HOT 1
- var/reports HOT 2
- Can't install 'capistrano/magento2/cachetool' HOT 2
- [enhancement] Deploy on multiple fronts without recompiling everything on each machine HOT 2
- Catalog product images in production mode delete after deploy HOT 1
- Cached data from current release causes new release to fail with redis caching HOT 6
- Change default path of Composer HOT 2
- Magento still has issues with /pub in sitemap HOT 1
- Change deployment order of DI compile and schema upgrade HOT 2
- Problem with deploy after updated module with SFTP error in setup:di:compile step HOT 5
- Doesn't work with PHP 7.4 and Magento 2..42 HOT 4
- When execute command cap staging deploy
- Issue: Cached metadata/generated files HOT 7
- How to handle initial setup:install HOT 1
- How can I flush cache file on multi server HOT 1
- touch: cannot touch '/var/www/html/releases/20220809134142/pub/static/deployed_version.txt' No such file or directory HOT 1
- Suggestion: Add arbitrary composer_flags or option to run composer with --no-plugins HOT 1
- Capistrano version
- Support for Quality Patches Tool
- When upgrading PHP version, mainenance:enable runs against old codebase, using new php version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-magento2.