# How do I open the Rails console in Discourse Docker in production mode?

**URL:** <https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [28.Июнь.2014 21:37:25 UTC](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970 "2014-06-28T21:37:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [28.Июнь.2014 21:38:17 UTC](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970/2 "2014-06-28T21:38:17Z")

</div>

Run `rails c` instead - this will open the console as the correct user in the correct mode.

You can also do this with `rake` and `discourse` (for `/var/www/discourse/script/discourse`).

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970)._
