Browse Source

Use the proper vars when seeding the database

feature/region-slug-gone
Bèr Kessels 5 months ago
parent
commit
2f68bac85e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bin/seedaddr

+ 2
- 2
bin/seedaddr View File

@@ -19,9 +19,9 @@ if [ -f ${ENV_SRC_FILE} ]; then
fi
DATABASE_TABLE="query_addresses"

DB_URL="postgres://${DB_USER}:${DB_USER}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
DB_URL="postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
function psql_exec {
echo $(psql $DB_URL -c "${1}")
echo $(psql ${DB_URL} -c "${1}")
}

psql_exec "TRUNCATE ${DATABASE_TABLE}"

Loading…
Cancel
Save