Skip to content

Commit 783478f

Browse files
committed
Success code when vendor dir is not present during ddev restart
1 parent cc9fbe1 commit 783478f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Misc
2727
=======
2828
- Optional: [Install Chrome service for FunctionalJavascript and Nightwatch tests](https://github.com/ddev/ddev-selenium-standalone-chrome).
2929
- Optional. Commit the changes .ddev after this plugin installs. This saves other users from having to install this integration. Rerun the `ddev get` in order to update the commands from this project.
30-
- This project reads your `project_type` from DDEV and fetches adds the corresponding version of `drupal/core-recommended` to composer.json. if you are doing something non-standard with project_type, don't use `ddev expand-composer-json` command.
30+
- This project reads your `project_type` from DDEV and fetches adds the corresponding version of `drupal/core-recommended` to composer.json. if you are doing something non-standard with project_type, don't use `ddev poser` command.
3131
- This project should work for any contrib project, including those that haven't [opted into Gitlab CI](https://www.drupal.org/project/infrastructure/issues/3261803). One advantage of that is that failures in CI are more likely to be reproducible locally when using this integration.
3232
- If you add/remove a root file or directory, re-symlink root files via EITHER of these methods
3333
- `ddev restart`

config.contrib.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
## Command provided by https://github.com/ddev/ddev-drupal-contrib
33
hooks:
44
post-start:
5-
- exec-host: "[[ -f vendor/autoload.php ]] && ddev symlink-project"
5+
- exec-host: |
6+
if [[ -f vendor/autoload.php ]]; then
7+
ddev symlink-project
8+
else
9+
exit 0
10+
fi

0 commit comments

Comments
 (0)