Browse Source

Added more potential details in readme.

master
Daniel Sissom 11 months ago
parent
commit
1b6987d72d
Signed by: djsissom GPG Key ID: 2C30FFB796852389
1 changed files with 10 additions and 1 deletions
  1. + 10
    - 1
      README

+ 10
- 1
README

@ -1,11 +1,20 @@
In build upstream bare repo (webserver:/usr/local/src/web/example.com/www/), run: In build upstream bare repo (webserver:/usr/local/src/web/example.com/www/), run:
# chown root:srv .
# chmod g+ws .
# git init --bare --shared=group # git init --bare --shared=group
# git config receive.denyCurrentBranch updateInstead # git config receive.denyCurrentBranch updateInstead
# git config receive.denyNonFastForwards false # git config receive.denyNonFastForwards false
?(# git config core.sharedRepository true)
?(# git config core.sharedRepository true) # if needed because of missing init option
Set upstream and push branches to new bare repo, then run:
# git worktree add /srv/prod/example.com/www master # git worktree add /srv/prod/example.com/www master
# git worktree add /srv/beta/example.com/www release # git worktree add /srv/beta/example.com/www release
# git worktree add /srv/dev/example.com/www dev # git worktree add /srv/dev/example.com/www dev
# chmod -R g+w .
# chmod g+w /srv/*/example.com/www
# chown -R root:srv . # chown -R root:srv .
# chmod -R g+swX . # chmod -R g+swX .
# chown root:srv /srv/prod/example.com/www # chown root:srv /srv/prod/example.com/www

Loading…
Cancel
Save