Skip to content

Commit

Permalink
Use new ddev get command
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jan 19, 2022
1 parent 80b1965 commit 4dbcf21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ defaults:
run:
shell: bash

env:
NIGHTLY_DDEV_PR_URL: "https://nightly.link/drud/ddev/actions/artifacts/146117649.zip"

jobs:
tests:
defaults:
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
- name: Use ddev PR
if: matrix.ddev_version == 'PR'
run: |
curl -sSL -o ddev_linux.zip https://nightly.link/drud/ddev/actions/artifacts/144791287.zip
curl -sSL -o ddev_linux.zip ${NIGHTLY_DDEV_PR_URL}
unzip ddev_linux.zip
mv ddev /usr/local/bin/ddev && chmod +x /usr/local/bin/ddev
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## What is this?

This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev service get drud/ddev-drupal9-solr`.
This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev get drud/ddev-drupal9-solr`.

## Installation on Drupal 9

1.`ddev service get drud/ddev-drupal9-solr && ddev restart`
1.`ddev get drud/ddev-drupal9-solr && ddev restart`
2. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
3. Enable the Search API Solr Search Defaults module: `ddev drush en -y search_api_solr_defaults`. (If it can't be enabled due to the "article" content type not existing, you can just create a search_api_solr server manually.)
4. Edit the enabled search_api server named `default_solr_server` at `admin/config/search/search-api/server/default_solr_server/edit`
Expand Down
2 changes: 1 addition & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ teardown() {

@test "basic installation" {
cd ${TESTDIR}
ddev service get ${DIR}
ddev get ${DIR}
ddev restart
status=$(ddev exec 'drush sapi-sl --format=json | jq -r .default_solr_server.status')
[ "${status}" = "enabled" ]
Expand Down

0 comments on commit 4dbcf21

Please sign in to comment.