Compare commits

...

2 Commits

Author SHA1 Message Date
34ccb24a9e propagate change to index 2018-04-23 02:44:35 -07:00
a8c92c597b fix last command 2018-04-23 02:44:11 -07:00
2 changed files with 14 additions and 16 deletions

View File

@@ -84,7 +84,7 @@ nothing to back up.
# Workflow # Workflow
### Static Content Directory Layout ## Static Content Directory Layout
Directories with static content are bind-mounted Directories with static content are bind-mounted
read-only into the container. To update the content read-only into the container. To update the content
@@ -137,7 +137,7 @@ structure, but only `htdocs`:
``` ```
### Deploying Static Content with Git ## Deploying Static Content with Git
You can use git to deploy static content, but take care You can use git to deploy static content, but take care
not to put your `.git` directory into the live not to put your `.git` directory into the live
@@ -161,13 +161,12 @@ Let's walk through that:
See scripts for details. See scripts for details.
### Updating Static Content with Git ## Updating Static Content with Git
``` ```
git pull \ git \
--git-dir=/www/example.com/git \
--work-tree=/www/example.com/htdocs/reponame \
pull origin gh-pages
``` ```
specify git-dir
specify work-dir

View File

@@ -84,7 +84,7 @@ nothing to back up.
# Workflow # Workflow
### Static Content Directory Layout ## Static Content Directory Layout
Directories with static content are bind-mounted Directories with static content are bind-mounted
read-only into the container. To update the content read-only into the container. To update the content
@@ -137,7 +137,7 @@ structure, but only `htdocs`:
``` ```
### Deploying Static Content with Git ## Deploying Static Content with Git
You can use git to deploy static content, but take care You can use git to deploy static content, but take care
not to put your `.git` directory into the live not to put your `.git` directory into the live
@@ -161,13 +161,12 @@ Let's walk through that:
See scripts for details. See scripts for details.
### Updating Static Content with Git ## Updating Static Content with Git
``` ```
git pull \ git \
--git-dir=/www/example.com/git \
--work-tree=/www/example.com/htdocs/reponame \
pull origin gh-pages
``` ```
specify git-dir
specify work-dir