Skip to content

Commit

Permalink
Edit copy of credentials file within bin/setup
Browse files Browse the repository at this point in the history
Prior to this commit, the Rails credentials were not being updated during this setup process.
  • Loading branch information
aaronskiba committed Jul 6, 2024
1 parent 0e544e4 commit 5801e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if valid_db
cp ".env.#{db_adapter}", '.env'

puts "\n== Preparing credentials file =="
system! "EDITOR='echo \"$(cat config/credentials.yml.#{db_adapter})\" >' bin/rails credentials:edit"
system!("EDITOR=\"sh -c 'echo \\\"$(cat config/credentials.yml.#{db_adapter})\\\" > \\\"\\\$1\\\"' --\" bin/rails credentials:edit")

# Set the editor based on the platform
ENV['EDITOR'] = Gem.win_platform? ? 'code --wait' : 'vim'
Expand Down

0 comments on commit 5801e7f

Please sign in to comment.