# L'installazione dello sviluppo fallisce quando si esegue bin/rails db:migrate

**URL:** <https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754>\
**Category:** Self-hosting\
**Tags:** dev-install\
**Created:** [25 Ottobre 2024, 10:08am UTC](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754 "2024-10-25T10:08:46Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [8 Novembre 2024, 1:43am UTC](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754/13 "2024-11-08T01:43:15Z")

</div>

Grazie per il report @NateDhaliwal

Kris ha risolto il problema con

> <https://github.com/discourse/discourse/commit/d57b7abe67adc654255d8061d5c2a9ec4543a102>
>
> After data seed, we should reset Redis cache to ensure that the correct flags ar…e cached.
> 
> However, \`db:create\` is skipping Redis 
> 
> https://github.com/discourse/discourse/blob/main/lib/tasks/db.rake#L39
> 
> And uses \`ActiveSupport::Cache::MemoryStore.new\`
> 
> https://github.com/discourse/discourse/blob/e2292d4c5914875ad0e303770c56db7cc96847e3/lib/discourse.rb#L523
> 
> Therefore, the reset flags cache was moved to initializers and evaluated only when the cache is Redis and Flags table already exists.
> 
> Meta: https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754

Dovremmo essere a posto ora!

---

_[View the full topic](https://meta.discourse.org/t/development-install-fails-when-running-bin-rails-db-migrate/332754)._
