From f92ac1191a1a86526a6e92c7ddbad62d44550212 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 9 Dec 2016 10:28:52 +0800 Subject: [PATCH] Rename `ALLOCATOR` -> `RUBY_ALLOCATOR`. --- image/base/Dockerfile | 2 +- templates/web.template.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image/base/Dockerfile b/image/base/Dockerfile index 323d6f1..dcb30fe 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:16.04 ENV PG_MAJOR 9.5 -ENV ALLOCATOR /usr/lib/libtcmalloc_minimal.so.4.3.0 +ENV RUBY_ALLOCATOR /usr/lib/libtcmalloc_minimal.so.4.3.0 MAINTAINER Sam Saffron "https://twitter.com/samsaffron" diff --git a/templates/web.template.yml b/templates/web.template.yml index b7ad699..faacaf8 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -91,7 +91,7 @@ run: # postgres cd $home chown -R discourse:www-data /shared/log/rails - LD_PRELOAD=$ALLOCATOR HOME=/home/discourse USER=discourse exec chpst -u discourse:www-data -U discourse:www-data bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb + LD_PRELOAD=$RUBY_ALLOCATOR HOME=/home/discourse USER=discourse exec chpst -u discourse:www-data -U discourse:www-data bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb - file: path: /etc/service/nginx/run -- 2.25.1