Skip to content

Commit

Permalink
Add tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed May 9, 2024
1 parent 3b88510 commit 72f90b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ def recreate_db

# Runs rails commands in a subprocess, and aborts if it does not succeed
def rails(*)
abort unless system("bin/rails", *)
abort unless system("bin/rails --trace", *)
end

# Runs rails commands in a subprocess silencing errors, and ignores status
def soft_rails(*)
system("bin/rails", *, err: File::NULL)
system("bin/rails --trace", *, err: File::NULL)
end

def cut(text, strip: true)
Expand Down

0 comments on commit 72f90b0

Please sign in to comment.