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


(Jay Pfaffman) #1

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

    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.


(Matt Palmer) #2

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


(Jay Pfaffman) #3

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


(Matt Palmer) #4

It’s my cross to bear.