File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
# packages required for bundle install
6
6
RUN ( \
7
7
apt-get update ; \
8
- apt-get install -y --no-install-recommends git make gcc g++ libpq-dev \
8
+ apt-get install -y --no-install-recommends git make gcc g++ libpq-dev libjemalloc-dev \
9
9
&& rm -rf /var/lib/apt/lists/* \
10
10
)
11
11
12
+ ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
13
+
12
14
# throw errors if Gemfile has been modified since Gemfile.lock
13
15
RUN bundle config --global frozen 1
14
16
RUN bundle config set deployment 'true'
Original file line number Diff line number Diff line change 1
1
web : ./script/server-buildpacks
2
- console : jemalloc.sh bundle exec ./script/console
3
- cron : jemalloc.sh bundle exec ./bin/cron
2
+ console : bundle exec ./script/console
3
+ cron : bundle exec ./bin/cron
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ cmd="unicorn config.ru -E $RACK_ENV -c config/unicorn.rb"
25
25
[[ $RACK_ENV == " development" ]] && cmd=" rerun -b -- $cmd "
26
26
27
27
if [ -z " $DYNO " ]; then
28
- cmd=" jemalloc.sh bundle exec $cmd "
28
+ cmd=" bundle exec $cmd "
29
29
else
30
- cmd=" jemalloc.sh bin/start-nginx $cmd "
30
+ cmd=" bin/start-nginx $cmd "
31
31
fi
32
32
33
33
exec $cmd
You can’t perform that action at this time.
0 commit comments