You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7cdac4e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/content/self-hosting/server-setup.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -880,10 +880,9 @@ This deploys three templates:
880
880
The `drupal-core` template can provision workspaces faster using a **seed cache** on the host. The cache is a **bare** git clone of drupal/drupal. When a workspace starts, the startup script:
881
881
882
882
1. Creates a fresh git repo in the workspace directory
883
-
2. Adds the bare cache as a local remote and fetches from it (fast — reuses local objects, no network)
884
-
3. Removes the cache remote
885
-
4. Fetches from `git.drupalcode.org`for any commits newer than the cache
886
-
5. Checks out `main` (or the issue branch)
883
+
2. Fetches the bare cache's branches and tags as `origin`'s (fast — reuses local objects, no network)
884
+
3. Fetches from `git.drupalcode.org`for any commits newer than the cache
885
+
4. Checks out `main` (or the issue branch), from the cache's refs if `git.drupalcode.org` can't be reached
887
886
888
887
This avoids downloading hundreds of MB per workspace and eliminates working-tree issues that a non-bare cache causes.
889
888
@@ -897,7 +896,7 @@ The seed directory IS the bare clone root — no subdirectory nesting. No workin
897
896
898
897
### Install the hourly update timer
899
898
900
-
The update script runs `git fetch --all --prune` to keep the bare cache current. Because there is no working tree, no `git merge` is needed. Install it as an hourly systemd timer:
899
+
The update script fetches every branch and tag into the bare cache to keep it current. Because there is no working tree, no `git merge` is needed. Install it as an hourly systemd timer:
901
900
902
901
```bash
903
902
REPO=~/workspace/coder-ddev # adjust if your repo is elsewhere
@@ -1023,10 +1022,10 @@ The `update-drupal-cache` script handles both bare and non-bare repos automatica
0 commit comments