Skip to content

Commit

Permalink
Merge pull request #59 from ti-broish/docker-postgresql-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev authored Jun 22, 2021
2 parents a360e26 + 165dfcc commit c421caf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/start-dev-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ echo "echo stop & remove old docker [$SERVER] and starting new fresh instance of
docker run --name $SERVER -e POSTGRES_PASSWORD=$DATABASE_PASSWORD \
-e PGPASSWORD=$DATABASE_PASSWORD \
-p 5432:5432 \
-d postgres
-d postgres \
-c log_statement=all \
-c log_destination=stderr

# wait for pg to start
echo "sleep wait for pg-server [$SERVER] to start";
SLEEP 10;
sleep 10;

# create the db
echo "CREATE DATABASE $DATABASE_NAME ENCODING 'UTF-8';" | docker exec -i $SERVER psql -U postgres
Expand Down

0 comments on commit c421caf

Please sign in to comment.