Skip to content

Comment on Using “git push” to deploy Ruby applications to your own serverparent

Comments

IMO the neat thing about a "git push" deployment is that you are deploying a particular commit.

The build server could annotate the build with the commit's hash, making that deployment reproducible.

If you just have a local ./deploy script, a dev might deploy changes that never make it into version control.

(Even if ./deploy forces the working copy to be clean and the index to be empty, the dev could still "git reset --hard" afterwards and the version that has been deployed is lot)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.