# Reset my development environment, but it's stuck in read-only mode

**URL:** https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414
**Category:** Development
**Tags:** read-only
**Created:** [Septembre 20, 2016, 10:52 UTC](https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414 "2016-09-20T22:52:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Septembre 20, 2016, 10:52 UTC](https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414/1 "2016-09-20T22:52:51Z")

</div>

I was running a dev environment in

~/src/discourse-1.6/

and switched over to

```
~/src/discourse

```

(Yes, I’m too stupid to actually use git, so this was my solution.)

I did

```bash
    RAILS_ENV=development
    export RAILS_ENV
    RAILS_ENV=development bundle exec rake db:drop db:create db:migrate

```

But now when I go to the site and try to log in I get “Login is disabled while the site is in read only mode”.

I saw something somewhere about nuking, blowing away, or resetting redis, but I can’t figure out how to go about that.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [Septembre 21, 2016, 12:45 UTC](https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414/2 "2016-09-21T00:45:46Z")

</div>

In the container, `redis-cli flushall` should do it, from memory.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Septembre 21, 2016, 3:04 UTC](https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414/3 "2016-09-21T03:04:29Z")

</div>

Did the trick! That’s some memory you’ve got.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [Septembre 21, 2016, 6:00 UTC](https://meta.discourse.org/t/reset-my-development-environment-but-its-stuck-in-read-only-mode/50414/4 "2016-09-21T06:00:08Z")

</div>

It’s my cross to bear.
