Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Run full installation by default (not just migrations) #190

Merged
merged 3 commits into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,29 @@ Or install it yourself as:
$ gem install solid_cache
```

Add the migration to your app:
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
```

Then run it:
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
```

Finally, you need to run the migrations:

```bash
$ bin/rails db:migrate
```
Expand Down