Skip to content

Commit f266c51

Browse files
newstlerclaude
andauthored
fix(setup): install gems before running configure (#95)
bin/configure needs activesupport for credential generation. Move bundle install before bin/configure in bin/setup, and use targeted gem activation instead of loading the full bundle. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b8208d3 commit f266c51

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

bin/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ FileUtils.chdir APP_ROOT do
318318

319319
section("Writing credentials")
320320

321-
require "bundler/setup"
321+
gem "activesupport"
322322
require "active_support/encrypted_configuration"
323323
FileUtils.mkdir_p("config/credentials")
324324

bin/setup

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ FileUtils.chdir APP_ROOT do
1111
# This script is a way to set up or update your development environment automatically.
1212
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
1313

14+
puts "== Installing dependencies =="
15+
system("bundle check") || system!("bundle install")
16+
1417
# Run configuration wizard if not already configured
1518
unless File.exist?(".configured")
1619
system!("bin/configure")
1720
end
1821

19-
puts "== Configuring git hooks =="
22+
puts "\n== Configuring git hooks =="
2023
system!("git config core.hooksPath bin/hooks")
2124

22-
puts "\n== Installing dependencies =="
23-
system("bundle check") || system!("bundle install")
24-
2525
puts "\n== Preparing database =="
2626
system! "bin/rails db:prepare"
2727

0 commit comments

Comments
 (0)