# Is Discourse using Ruby 2.0? Howto use Ruby 2.2

**URL:** <https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248>\
**Category:** Self-hosting\
**Created:** [14.Май.2016 18:18:01 UTC](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248 "2016-05-14T18:18:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![arrowcircle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arrowcircle/32/100035_2.png) [@arrowcircle](https://meta.discourse.org/u/arrowcircle)\
**Post date:** [14.Май.2016 18:18:01 UTC](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248/1 "2016-05-14T18:18:01Z")

</div>

Hi!  
Today I looked at my Discourse installation and after rebuilding app image, somehow decided to check ruby version.

> ./launcher enter app  
> ruby -v  
> ruby 2.0.0p647 (2015-08-18 revision 51631) [x86\_64-linux]

It really surprised me, because 2.0 branch is not officially supported anymore.  
Am I doing something wrong? Or Discourse really use 2.0 ruby?

I started looking for PosgreSQL version and found 9.3.11. I found 9.5 template, but no info about how to upgrade to it. Is it not complete yet?

**Answer** Thanks to @sam

> [@sam](#):
>
> We already have 2.2 with Github patches image that is running here on meta. It is activated with:
> 
> ```plaintext
> base_image: discourse/discourse_fast_switch:1.0.17
> 
> before_web:
> exec: use_22
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/is-discourse-using-ruby-2-0-howto-use-ruby-2-2/44248)._
