Rename `ALLOCATOR` -> `RUBY_ALLOCATOR`.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 9 Dec 2016 02:28:52 +0000 (10:28 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 9 Dec 2016 02:28:52 +0000 (10:28 +0800)
image/base/Dockerfile
templates/web.template.yml

index 323d6f1e539fbc9bf41496783d480588ca0a90f8..dcb30feefcb2c39626d2b129a6d717c7a2fe2dad 100644 (file)
@@ -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"
 
index b7ad699ef97a6ebe5b95e7c0aef1829a08306082..faacaf84cb9d09339cb65caec21635771bf2ab2a 100644 (file)
@@ -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