Skip to content

Commit 97e3bb3

Browse files
committed
disable bootsnap in docker file and boot
1 parent 953a362 commit 97e3bb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz
4646
COPY Gemfile Gemfile.lock .ruby-version ./
4747
RUN bundle install && \
4848
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
49-
bundle exec bootsnap precompile --gemfile
49+
bundle exec precompile --gemfile
5050

5151
# Install node modules
5252
COPY package.json yarn.lock ./
@@ -56,7 +56,7 @@ RUN yarn install --frozen-lockfile
5656
COPY . .
5757

5858
# Precompile bootsnap code for faster boot times
59-
RUN bundle exec bootsnap precompile app/ lib/
59+
# RUN bundle exec bootsnap precompile app/ lib/ # disable bootsnapp for now as it causes a crash during deploy
6060

6161
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
6262
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile

config/boot.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
22

33
require "bundler/setup" # Set up gems listed in the Gemfile.
4-
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
4+
# require "bootsnap/setup" # Speed up boot time by caching expensive operations.

0 commit comments

Comments
 (0)