From 122138402bee7f7b180872a72208dfcdaca4a498 Mon Sep 17 00:00:00 2001 From: Nikolay Gorylenko Date: Mon, 3 Aug 2015 16:52:38 +0200 Subject: [PATCH 1/3] 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/3] 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 From ef3c32c5e98ca02496e29016dd29716c394cc787 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 3 Aug 2015 18:43:55 +0100 Subject: [PATCH 3/3] Updated the readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index a6ac5d2b..30d50bd1 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,7 @@ Run Cachet: $ 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 ``` -Install Redis client library for PHP (optional step) - -If you set `CACHE_DRIVER`, `SESSION_DRIVER` or `QUEUE_DRIVER` to `redis`: +You can optionally install predis to enable usage of the various redis drivers: ```bash $ docker exec -i cachet php composer.phar require predis/predis