Skip to content

Commit f635846

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 896b126 + 2e09573 commit f635846

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,21 @@ This image includes several scripts that integrate with the devcontainer lifecyc
1919
* `/usr/local/bin/uceap-drupal-dev-post-start`
2020
* `/usr/local/bin/uceap-drupal-dev-update-content`
2121

22-
I frequently invoke `uceap-drupal-dev-update-content` to reset my local environment after switching branches. It runs `composer install` and invokes `db-rebuild.sh` with a fresh copy of the latest snapshot of the dev environment database and files. With zsh completions installed, it's as easy as `dev-up<TAB>`.
22+
It also includes one that doesn't fit into the devcontainer lifecycle, but performs similar tasks:
2323

24-
> 👉 When working on a PR that adds update hooks or makes config changes, it's generally a good idea to make sure it applies cleanly to a database matching the QA environment. To do this, switch to the `qa` branch, run update-content, switch back to your branch, and run the deploy command (e.g. `drush md` for the portal):
24+
* `/usr/local/bin/uceap-drupal-dev-refresh-content`
25+
26+
I frequently invoke `uceap-drupal-dev-refresh-content` to reset my local environment after switching branches. It runs `composer install` and invokes `db-rebuild.sh` with a fresh copy of the latest snapshot of the dev environment database and files. With zsh completions installed, it's as easy as `dev-re<TAB>`.
27+
28+
> 👉 When working on a PR that adds update hooks or makes config changes, it's generally a good idea to make sure it applies cleanly to a database matching the QA environment. To do this, switch to the `qa` branch, run refresh-content, switch back to your branch, and run the deploy command (e.g. `drush md` for the portal):
2529
> ``` zsh
2630
> git checkout qa
27-
> uceap-drupal-dev-update-content
31+
> uceap-drupal-dev-refresh-content
2832
> git checkout -
2933
> composer install
3034
> drush $DRUSH_TASK
3135
> ```
3236
3337
Sometimes a process can die or port forwarding can fail. `uceap-drupal-dev-post-start` runs a few commands that should get things working again. (Again, zsh shell completion makes this `post-s<TAB>`).
3438
35-
Using devcontainers faciliates treating local environments as ephemeral: they're quick and easy to setup. Treat them as safe to destroy because you can always create a new one (or multiple new ones, to suit your needs). One thing you might miss is your shell history. Check out [Atuin](https://atuin.sh/) to sync your shell history across environments. `Control-R` has never looked so good 😎
39+
Using devcontainers faciliates treating local environments as ephemeral: they're quick and easy to setup. Treat them as safe to destroy because you can always create a new one (or multiple new ones, to suit your needs). One thing you might miss is your shell history. Check out [Atuin](https://atuin.sh/) to sync your shell history across environments. `Control-R` has never looked so good 😎

0 commit comments

Comments
 (0)