Skip to content

Commit

Permalink
Set a specific version of Admin Toolbar in composer.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Feb 25, 2019
1 parent 655cd87 commit 91591ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -26,14 +26,20 @@ Please read through the [project documentation](docs/README.md) for details abou

(Wait for the environment to come up—you can monitor the logs with `docker-compose logs -f`).

1. Once the container is running, install Drupal. You can either access http://localhost/ and install using the UI, or install via Drush:
1. Once the container is running, install Dependencies and install Drupal. You can either access http://localhost/ and install using the UI, or install via Drush:

```
# Install dependencies.
docker-compose exec drupal composer install
# Install Drupal.
docker-compose exec drupal bash -c 'vendor/bin/drush site:install minimal --db-url="mysql://drupal:$DRUPAL_DATABASE_PASSWORD@$DRUPAL_DATABASE_HOST/drupal" --site-name="Drupal Example Site for Kubernetes" --existing-config -y'
```

1. Visit http://localhost/ in your browser, and login as `admin` using the password Drush printed in the 'Installation complete' message.

> Note: If you have PHP and Composer installed on your host computer, you can run the `composer install` command there instead of through the Docker container for a bit of a speedup.
### Managing Configuration

After making any configuration changes on the website, you can export the configuration to disk so it can be preserved in the codebase and deployed to the production site:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -20,7 +20,7 @@
"composer/installers": "^1.2",
"cweagans/composer-patches": "^1.6.5",
"drupal-composer/drupal-scaffold": "^2.5",
"drupal/admin_toolbar": "^1.26",
"drupal/admin_toolbar": "1.26.0",
"drupal/console": "^1.0.2",
"drupal/core": "^8.6.0",
"drupal/default_content": "^1.0@alpha",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91591ac

Please sign in to comment.