From cd749ae576a415ea9f2b9d31513b333fb15691d3 Mon Sep 17 00:00:00 2001 From: "Philip I. Thomas" Date: Thu, 1 Aug 2024 21:19:29 -0400 Subject: [PATCH 1/3] Docs: Run full installation by default (not just migrations) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2896a90..f3cf47c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ $ gem install solid_cache Add the migration to your app: ```bash -$ bin/rails solid_cache:install:migrations +$ bin/rails solid_cache:install ``` Then run it: From 6326f1eb025e75144ddc3ef283d9231d057985bf Mon Sep 17 00:00:00 2001 From: "Philip I. Thomas" Date: Thu, 1 Aug 2024 21:34:09 -0400 Subject: [PATCH 2/3] Update to match installation style of solilid_queue --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3cf47c..69d8229 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,35 @@ Or install it yourself as: $ gem install solid_cache ``` +Now, you need to install the necessary migrations and configure the cache store. You can do both at once using the provided generator: + +```bash +$ bin/rails generate solid_cache:install +``` + +This will set solid_cache as the cache store in production, and will copy the optional configuration file and the required migration over to your app. + +Alternatively, you can add only the migration to your app: + +```bash +$ bin/rails solid_cache:install:migrations +``` + +And set Solid Cache as your application's cache store backend manually, in your environment config: + +```ruby +# config/environments/production.rb +config.cache_store = :solid_cache_store +``` + Add the migration to your app: ```bash $ bin/rails solid_cache:install ``` -Then run it: +Finally, you need to run the migrations: + ```bash $ bin/rails db:migrate ``` From 0ccf0d6b31f04aba3ca66ea2982d16259a750e84 Mon Sep 17 00:00:00 2001 From: "Philip I. Thomas" Date: Thu, 1 Aug 2024 21:35:50 -0400 Subject: [PATCH 3/3] Docs - remove duplicated line in README --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 69d8229..350e6ad 100644 --- a/README.md +++ b/README.md @@ -59,12 +59,6 @@ And set Solid Cache as your application's cache store backend manually, in your config.cache_store = :solid_cache_store ``` -Add the migration to your app: - -```bash -$ bin/rails solid_cache:install -``` - Finally, you need to run the migrations: ```bash