Skip to content

Commit

Permalink
Configure boot.rb to remove server.pid (reboot loop issue).
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Mar 31, 2024
1 parent c85383e commit 5e79bba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/entrypoint.sh

This file was deleted.

5 changes: 5 additions & 0 deletions test/config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Before booting, remove `server.pid` (fixes issue in production where the app reboots constantly
# with: `A server is already running. Check /app/test/tmp/pids/server.pid.`).
require "fileutils"
FileUtils.rm_rf("tmp/pids/server.pid")

# Set up gems listed in the Gemfile.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __dir__)
require "bundler/setup"
Expand Down

0 comments on commit 5e79bba

Please sign in to comment.