From d8c3362d4084a46d5ecc182d815162691fdd78ea Mon Sep 17 00:00:00 2001 From: Cory Lueninghoener Date: Thu, 12 Dec 2019 22:20:34 -0700 Subject: [PATCH] Adds search backend --- apache.conf | 1 + run.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/apache.conf b/apache.conf index 74bcdbd..71c2368 100644 --- a/apache.conf +++ b/apache.conf @@ -9,6 +9,7 @@ DocumentRoot /var/www/html WSGIScriptAlias /points /var/www/html/points.wsgi + WSGIScriptAlias /search /var/www/html/search.wsgi ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined diff --git a/run.sh b/run.sh index 824e195..5aa0409 100755 --- a/run.sh +++ b/run.sh @@ -31,6 +31,7 @@ if [ "$1" = "import" ]; then sudo -u postgres createdb -E UTF8 -O renderer gis sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;" sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;" + sudo -u postgres psql -d gis -c "CREATE EXTENSION fuzzystrmatch;" sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;" sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;" setPostgresPassword