diff --git a/.env.example b/.env.example index 5293fce2..accef838 100644 --- a/.env.example +++ b/.env.example @@ -22,9 +22,9 @@ LOG_LEVEL=debug DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_PORT=5432 -DB_DATABASE=larachain +DB_DATABASE=laralamma DB_USERNAME=postgres -DB_PASSWORD= +DB_PASSWORD=secret SESSION_DRIVER=database SESSION_LIFETIME=120 diff --git a/docker/psql/extensions.sh b/docker/psql/extensions.sh index 3db4442c..6b84440e 100644 --- a/docker/psql/extensions.sh +++ b/docker/psql/extensions.sh @@ -5,13 +5,13 @@ set -e # Perform all actions as $POSTGRES_USER export PGUSER="$POSTGRES_USER" -# Create the 'template_postgis' template db +# Create the 'laralamma' template db "${psql[@]}" <<- 'EOSQL' -CREATE DATABASE template_postgis IS_TEMPLATE true; +CREATE DATABASE laralamma IS_TEMPLATE true; EOSQL # Load PostGIS into both template_database and $POSTGRES_DB -for DB in template_postgis "$POSTGRES_DB"; do +for DB in laralamma "$POSTGRES_DB"; do echo "Loading PostGIS extensions into $DB" "${psql[@]}" --dbname="$DB" <<-'EOSQL' CREATE EXTENSION IF NOT EXISTS postgis;