Sha256: b287410e39511bcf7d2d411275b1e421150ec7a898a1e053711608ecafada572

Contents?: true

Size: 681 Bytes

Versions: 30

Compression:

Stored size: 681 Bytes

Contents

SCHEMA="pact_broker"
set -e
psql postgres -c "DROP DATABASE ${SCHEMA};"
psql postgres -c "CREATE DATABASE ${SCHEMA};"
psql postgres -c "GRANT ALL PRIVILEGES ON DATABASE ${SCHEMA} TO pact_broker;"
ip=$(ifconfig en0 | sed -n -e '/inet/s/.*inet \([0-9.]*\) netmask .*/\1/p')
echo ""
echo "run the following command to set your environment variables:"
echo "export PACT_BROKER_DATABASE_USERNAME=pact_broker"
echo "export PACT_BROKER_DATABASE_PASSWORD=pact_broker"
echo "export PACT_BROKER_DATABASE_NAME=${SCHEMA}"
echo "export PACT_BROKER_DATABASE_HOST=${ip}"
echo "To test:"
echo "psql -h \$PACT_BROKER_DATABASE_HOST -d \$PACT_BROKER_DATABASE_NAME -U \$PACT_BROKER_DATABASE_USERNAME"

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
pact_broker-2.19.0 script/recreate-pg-db.sh
pact_broker-2.18.0 script/recreate-pg-db.sh
pact_broker-2.17.1 script/recreate-pg-db.sh
pact_broker-2.17.0 script/recreate-pg-db.sh
pact_broker-2.16.1 script/recreate-pg-db.sh
pact_broker-2.16.0 script/recreate-pg-db.sh
pact_broker-2.15.0 script/recreate-pg-db.sh
pact_broker-2.14.0 script/recreate-pg-db.sh
pact_broker-2.13.1 script/recreate-pg-db.sh
pact_broker-2.13.0 script/recreate-pg-db.sh
pact_broker-2.12.0 script/recreate-pg-db.sh
pact_broker-2.11.0 script/recreate-pg-db.sh
pact_broker-2.10.0 script/recreate-pg-db.sh
pact_broker-2.9.0 script/recreate-pg-db.sh
pact_broker-2.9.0.beta.5 script/recreate-pg-db.sh
pact_broker-2.8.0.beta.5 script/recreate-pg-db.sh
pact_broker-2.8.0.beta.4 script/recreate-pg-db.sh
pact_broker-2.7.0.beta.3 script/recreate-pg-db.sh
pact_broker-2.7.0.beta.2 script/recreate-pg-db.sh
pact_broker-2.7.0.beta.1 script/recreate-pg-db.sh