The discussion addresses whether Discourse is still using the unsupported Ruby 2.0. arrowcircle discovered their Docker container running Ruby 2.0.0 and asked about upgrading to Ruby 2.2 or 2.3, as well as PostgreSQL versions. Mittineague noted their local development environment already used Ruby 2.2. Falco explained that while Discourse Docker currently uses Ruby 2.0 and PostgreSQL 9.3, upgrading to Ruby 2.3 increases memory pressure, though PostgreSQL 9.6 offers significant performance gains.
Sam, a Discourse developer, clarified that while a Ruby 2.2 image with patches exists (activated via base_image configuration), the official stance is to move to Ruby 2.3.1 due to the lack of support for 2.0. Sam shared benchmarks showing memory usage on 2.3 is comparable to 2.0 and confirmed plans to upgrade the latest images. When arrowcircle encountered issues with the Ruby 2.2 configuration, Sam advised using the before_web hook instead of run. Finally, fantasticfears shared success with a multi-site setup using a new base image and PostgreSQL 9.5, though they warned against using this in production without deep code understanding.
@sam Thanks for the answer.
Where should we put this code? I tried to put in in the beginning of my app.yml.
Then tried to put run section to first place of run yml, but after rebuilding container my app is down.
There are no errors in log files. Looks like unicorn dont start at all.
I noticed, that
use_22
runs after bundler completes installing gems.
What I doing wrong?