Comments (5)
Thanks, Magnus --
I'll try to look at this on the plane back from SF this week.
Rick
from whiskey_disk.
I didn't get a chance to get to this on the plane. A couple of clarifying questions now that I'm thinking more about it:
I read your pre-deploy state as:
- working from the prior version
- having already done a git fetch for the main repo
I'm not sure which .whiskey_disk-files you're asking for -- do you mean the files which track changes? For a single repo this would be possible (as that's deducible via git from the hashes of the current HEAD and the new origin/ HEAD), but for information from the other repositories it would be harder (as that information comes from applying those files, currently via rsync).
I'm mentally walking myself through the "business value" of the three preconditions. Having the previous version checked out seems obvious to me (and would be the state I think most people would expect the checkout to be in); having origin/ available (i.e., post-fetch) seems reasonable, as then one could do one's own arbitrary comparisons as to state. If it's changes files we're discussing in #3 then that might also be useful, it just happens to be (quite?) a bit more difficult.
Thoughts?
Rick
from whiskey_disk.
Let me rephrase my third "requirement": I want to be able to use changes?
in my pre-deploy hook.
Also, when I think about it, shouldn't the pre-deploy hooks run on all the machines before any of them start on the deployment? Ugh, this seems harder than I thought :/
from whiskey_disk.
Gotcha. I'm doing some work that will allows #changes? to work in the pre-deploy hooks. The synchronization bit is on the radar for other reasons, but may take a bit to get done.
from whiskey_disk.
Great. And thanks for some great work on whiskey_disk :-)
from whiskey_disk.
Related Issues (20)
- wd deploy can fail with "fatal: did not find object for shallow <hash> " HOT 1
- What to set in --only for the single local server? HOT 1
- Doesn't play nicely with RVM HOT 14
- How can I run a task on remote server locally? HOT 4
- recurse submodules on fetch and pull HOT 4
- shallow clone option HOT 2
- Error when deploying with 0.6.23 HOT 9
- Dry run option? HOT 2
- multi-project deployments example HOT 2
- misleading error when specified target is not in config file and config file doesn't have a project scope
- Disable automatically running rake tasks? HOT 1
- Is there a way to fail fast on deploy if first instance deployment fails HOT 1
- Issue with Whiskey Disk, RVM with custom Gems
- Documentation Upgrades
- --path flag should be --config HOT 1
- Better error messages when wd can't find the deployment target specified by --to HOT 2
- staleness checking won't work with the 'dash' shell HOT 1
- wd misreports the current deployment hook HOT 4
- wd setup needs to create the branch before checking out the branch HOT 4
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 whiskey_disk.