diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh deleted file mode 100755 index fcd77e1..0000000 --- a/bin/entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -e - -# Fix reboot loop issue (`A server is already running. Check -# /app/test/tmp/pids/server.pid.`). -rm -rf /app/test/tmp/pids/server.pid - -exec "$@" diff --git a/test/config/boot.rb b/test/config/boot.rb index 000ac98..ff5d810 100644 --- a/test/config/boot.rb +++ b/test/config/boot.rb @@ -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"