Closed jacobobryant closed 1 year ago
Alternatively you can leave the deploy-cmd
unmodified if you run git push prod <your branch name>:master -f
in the project root - bb deploy
should work fine without -f
after that. I'm not sure about making -f
the default, especially if you're not the only developer working on that branch (but as a solo dev it should be fine).
In this case I think force pushing isn't a big deal since it's just for deploying--if you're working on a team then presumably you're also pushing the code to github or elsewhere. Either way, it'd certainly be nice to not need the workaround.
I'm actually kind of wondering if there's any point in using git to deploy at all; maybe we should just use rsync for everything... something to think about.
Closed by v0.7.11 -- now bb deploy
just uses rsync
instead of git.
From slack,
bb deploy
for a new project is giving this::biff.tasks/deploy-cmd
is configured correctly. For some reason, runninggit push prod main:master
directly works, which is extremely confusing to me since that's whatbb deploy
is running (verified with a(prn deploy-cmd)
).Maybe this has something to do with deploying from
main
tomaster
; hopefully I can reproduce it that way. At least two people have run into this already.As a workaround, you can set
:biff.tasks/deploy-cmd
to["git" "push" "prod" "main:master" "-f"]
. It honestly might not hurt to just have biff include the"-f"
in the defaultconfig.edn
. Of course it would be nice to figure out the root cause though.