Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Refactor readme to make the install process better.
  • Loading branch information
hkirsman authored Feb 23, 2024
1 parent debd648 commit 6b22078
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,38 @@ URL will become example.com.ddev.site.
ddev config --project-type=drupal10 --docroot=web --project-name=example.com
```

2. Start DDEV:
2. Install wunderio/ddev-drupal Composer package with DDEV and restart DDEV:

```bash
ddev start
ddev composer require wunderio/ddev-drupal --dev && ddev restart
```

3. Install the Composer package:
3. Add changes to GIT (note that below command uses -p, so you need to say 'y'es or 'n'o if it asks what to commit):

```bash
ddev composer require wunderio/ddev-drupal --dev
git add .ddev/ &&
git add drush/sites/ &&
git add composer.lock
git add -p composer.json web/sites/default/settings.php
git commit
```

4. Restart DDEV:
Also note that whenever you update wunderio/ddev-drupal package, you need to add everything under .ddev to GIT.

4. Import database:

```bash
ddev restart
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
```

5. Add changes to GIT:
or install site:

```bash
git add .ddev/ &&
git add drush/sites/ &&
git add -p composer.json composer.lock
ddev drush si
```

6. Import database:
5. Create admin link and login:

```bash
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
ddev drush uli
```

0 comments on commit 6b22078

Please sign in to comment.