Skip to content

Commit

Permalink
disable bootsnap in docker file and boot
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jan 27, 2025
1 parent 953a362 commit 97e3bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz
COPY Gemfile Gemfile.lock .ruby-version ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile
bundle exec precompile --gemfile

# Install node modules
COPY package.json yarn.lock ./
Expand All @@ -56,7 +56,7 @@ RUN yarn install --frozen-lockfile
COPY . .

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

# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
Expand Down
2 changes: 1 addition & 1 deletion config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

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

0 comments on commit 97e3bb3

Please sign in to comment.