I deploy using "git push heroku master", but I'm using 2 buildpacks and it takes some minutes to build everything. My app is still in QA.
So my question is: Is there a way I can update the remote files without going through all this building process?
Let's say I change
<span class="bla">
to
<span class="foo">
I know it won't need to build anything, but I'm forced to build it again.
It looks like the Heroku build compiler slug is tied directly into Git. When you push, a remote Git hook runs to trigger the rebuild. (It does this "while you wait," which is why you can press Ctrl-C to cancel the build--and the push.)
Interestingly, this fellow was having the opposite problem--he wanted to rebuild without pushing any changes. You can do that, with an empty commit. A new commit arriving will trigger the build hook.
At any rate, you can't disable a Git remote's hooks; that's part of the design of Git. So if you must use Git to publish, the answer to your question is, "no, so have a coffee machine or a webcomic nearby." ;-)
Note that that leaves the possibility of not using Git. I'm totally unfamiliar with it, but you might look at Heroku's Anvil as a way of releasing without using Git. Possibly it's what you're looking for. Let me know if you work something out!
(EDIT: Anvil has been deprecated; apparently Convox is the replacement? Looks expensive.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With