4 ms·
For hosts that support git, I simply clone/pull updates from a central repos. For hosts that don't (i.e. we used to have one project running on a Windows serve
by DCoder 16y ago
For hosts that support git, I simply clone/pull updates from a central repos.
For hosts that don't (i.e. we used to have one project running on a Windows server with nothing but Remote Desktop access and no permission to install any VCS), I use this:
alias gdate=date\ +%Y.%m.%d-%H.%M.%S
gitzip () { zip -ruv "$(gdate).zip" $(git diff $@ --name-only); }
Invoking `gitzip $commit` produces a zip file containing all the changed files since said commit. Unzip archive to wwwroot, check for files that need to be deleted, done.