Skip to content

Commit

Permalink
update with project-syncing action
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 28, 2024
1 parent caadfed commit a58927b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require "fileutils"
APP_ROOT = File.expand_path("..", __dir__)

def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==")
system(*args, exception: true)
end

FileUtils.chdir APP_ROOT do
Expand All @@ -29,9 +29,7 @@ FileUtils.chdir APP_ROOT do
# end

puts "\n== Preparing database =="
system! "bin/rails db:create"
system! "bin/rails db:migrate"
system! "bin/rails db:seed"
system! "bin/rails db:prepare"

puts "\n== Removing old logs and tempfiles =="
system! "bin/rails log:clear tmp:clear"
Expand Down

0 comments on commit a58927b

Please sign in to comment.