From a6077279bfe24ecc2541cbf4379c4d93c81f15df Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Thu, 23 Jul 2020 18:04:05 +0200 Subject: [PATCH] - .env configuration --- Home.md | 9 ++++++++- installs/SolrUbuntu.md | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Home.md b/Home.md index d9c10aa..992d828 100644 --- a/Home.md +++ b/Home.md @@ -41,6 +41,8 @@ Copy the example env file and make the required configuration changes in the .en `cp .env.example .env` + `.env` - Environment variables can be set in this file + Configure your database connection in .env-file e.g.: `nano .env` @@ -54,7 +56,12 @@ DB_PASSWORD=new_password_here DB_SCHEMA=gba ``` - `.env` - Environment variables can be set in this file +also set the solr connection string: + +```ini +SOLR_HOST=localhost +SOLR_CORE=tethys_data +``` ***Note*** : You can quickly set the database information, the solr connection string and other variables in this file and have the application fully working. diff --git a/installs/SolrUbuntu.md b/installs/SolrUbuntu.md index f077274..4d49d1d 100644 --- a/installs/SolrUbuntu.md +++ b/installs/SolrUbuntu.md @@ -2,7 +2,7 @@ ## Installation SOLR -+ cd /opt/ ++ `cd /opt/` + Download solr source code:\ `sudo wget https://www-eu.apache.org/dist/lucene/solr/7.7.3/solr-7.7.3.tgz` + extract compressed source code: @@ -93,9 +93,6 @@ sudo mv /home/user/solrconfig.xml /var/solr/data/tethys_data/conf/ Output Will be:\ Created new core 'tethys_data' -delete your solr index:\ -`sudo su - solr -c "/opt/solr/bin/solr delete -c tethys_data"` - ## Manage Solr service ```bash @@ -106,6 +103,9 @@ sudo service solr stop ## Uninstall SOLR +delete your solr index:\ +`sudo su - solr -c "/opt/solr/bin/solr delete -c tethys_data"` + ```bash sudo service solr stop sudo rm -r /var/solr