From 122138402bee7f7b180872a72208dfcdaca4a498 Mon Sep 17 00:00:00 2001 From: Nikolay Gorylenko Date: Mon, 3 Aug 2015 16:52:38 +0200 Subject: [PATCH 1/2] doc update - how to install Predis dependency --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b890d317..dde93600 100644 --- a/README.md +++ b/README.md @@ -105,13 +105,18 @@ Initialize the DB if you haven't yet: ```bash $ docker run --rm --link mysql:mysql -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD cachethq/cachet:latest php artisan migrate --force ``` - Run Cachet: ```bash $ docker run -d --name cachet --link mysql:mysql -p 80:8000 -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD cachethq/cachet:latest ``` +Optional step (if you set `CACHE_DRIVER`, `SESSION_DRIVER` or `QUEUE_DRIVER` to `redis` ): install Redis client library for PHP + +```bash +$ docker exec -i cachet php composer.phar require predis/predis +``` + Now go to `http:///setup` and have fun! Note: When running in production you should ensure that you enable SSL. From 06ecb4b9fb2f4bd9dd9d5775143bf83a3543ab59 Mon Sep 17 00:00:00 2001 From: Nikolay Gorylenko Date: Mon, 3 Aug 2015 17:32:51 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dde93600..a6ac5d2b 100644 --- a/README.md +++ b/README.md @@ -105,13 +105,16 @@ Initialize the DB if you haven't yet: ```bash $ docker run --rm --link mysql:mysql -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD cachethq/cachet:latest php artisan migrate --force ``` + Run Cachet: ```bash $ docker run -d --name cachet --link mysql:mysql -p 80:8000 -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD cachethq/cachet:latest ``` -Optional step (if you set `CACHE_DRIVER`, `SESSION_DRIVER` or `QUEUE_DRIVER` to `redis` ): install Redis client library for PHP +Install Redis client library for PHP (optional step) + +If you set `CACHE_DRIVER`, `SESSION_DRIVER` or `QUEUE_DRIVER` to `redis`: ```bash $ docker exec -i cachet php composer.phar require predis/predis