Sep 21, 2014

cap production deploy errors

If you get this:

cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host my-app-name.com: git exit status: 2
git stdout: Nothing written
git stderr: fatal: Not a valid object name
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors



It's probably due to deploy.rb attempting to deploy a branch that is empty on remote ie has not commits yet.

Solution: Try pointing to a branch with commits.

No comments:

Post a Comment