Repository navigation
fix(core): Rails loses storage/ on every redeploy and installs its gems twice - #468
Merged
Hydralerne merged 3 commits intoSep 16, 2026
Conversation
A Gemfile names direct dependencies only, so transitive gems were invisible to stack detection. The lockfile carries what bundler actually resolved, with exact versions and the RUBY VERSION stanza. parseRubyVersion is exported but unused here; it is what will let the build image follow the project's pinned Ruby instead of a hardcoded 3.3.
storage/ is where a stock Rails 8 app keeps both the SQLite database and Active Storage's disk service, so every redeploy silently discarded them. Rails' own Dockerfile declares `VOLUME /rails/storage`; laravel already declares the same path here for the same reason. The build command also opened with `bundle install`, which stack-detector already runs as the install step, and precompiled without RAILS_ENV or the SECRET_KEY_BASE_DUMMY that Rails' Dockerfile sets. Start command now binds $PORT rather than falling back to 3000.
Hydralerne
changed the base branch from
main
to
feat/bugfix-batch-2026-09-16
September 16, 2026 04:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rails deployments currently discard
storage/, repeatbundle install, and precompile without the production environment/dummy secret used by Rails' generated Dockerfile. Preserve storage through the existing stack-volume mechanism and correct the default build/start commands. The existing Ruby detector also reads resolved Gemfile.lock dependencies without treating constraints as installed gems.Adapted the original contribution to the current integration branch in #892. The final change uses existing stack/detection primitives and keeps migrations in the application image. Release phases and new process roles remain separate work under #231.
Validation: 1,059 core tests and 224 API language/stack-detection cases pass. Nine new regression cases fail against current main. Real Ruby image/build validation is handled with the companion build-recipe repair in #469.