Skip to content

Commit

Permalink
fake change to maintain git history
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad1991 committed Apr 15, 2024
1 parent 06b75d2 commit c791ac3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ host="$1"
shift

until psql -h "$host" -U "postgres" -c '\l'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done

>&2 echo "Postgres is up"

echo "Starting rails server"
rm -f tmp/pids/server.pid
if [ "$RAILS_ENV" = "production" ]
then
bundle exec passenger start -b 0.0.0.0 --max-pool-size 5
if [ "$RAILS_ENV" = "production" ]; then
bundle exec passenger start -b 0.0.0.0 --max-pool-size 5
else
bundle exec rails s -b 0.0.0.0
bundle exec rails s -b 0.0.0.0
fi

0 comments on commit c791ac3

Please sign in to comment.