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 a58927b commit a31257a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/server
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if pg_ctl status | grep -q 'no server running'; then
pg_start;
fi

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
parentdir="$(dirname "$DIR")"
pid="$parentdir/tmp/pids/server.pid"
Expand Down
3 changes: 3 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ FileUtils.chdir APP_ROOT do
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end

puts "\n== Starting postgres =="
system! "if pg_ctl status | grep -q 'no server running'; then pg_start; fi"

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

Expand Down

0 comments on commit a31257a

Please sign in to comment.