- .env configuration

Arno Kaimbacher 2020-07-23 18:04:05 +02:00
parent 76b5ca1bd5
commit a6077279bf
2 changed files with 12 additions and 5 deletions

@ -41,6 +41,8 @@ Copy the example env file and make the required configuration changes in the .en
`cp .env.example .env` `cp .env.example .env`
`.env` - Environment variables can be set in this file
Configure your database connection in .env-file e.g.: Configure your database connection in .env-file e.g.:
`nano .env` `nano .env`
@ -54,7 +56,12 @@ DB_PASSWORD=new_password_here
DB_SCHEMA=gba 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. ***Note*** : You can quickly set the database information, the solr connection string and other variables in this file and have the application fully working.

@ -2,7 +2,7 @@
## Installation SOLR ## Installation SOLR
+ cd /opt/ + `cd /opt/`
+ Download solr source code:\ + Download solr source code:\
`sudo wget https://www-eu.apache.org/dist/lucene/solr/7.7.3/solr-7.7.3.tgz` `sudo wget https://www-eu.apache.org/dist/lucene/solr/7.7.3/solr-7.7.3.tgz`
+ extract compressed source code: + extract compressed source code:
@ -93,9 +93,6 @@ sudo mv /home/user/solrconfig.xml /var/solr/data/tethys_data/conf/
Output Will be:\ Output Will be:\
Created new core 'tethys_data' Created new core 'tethys_data'
delete your solr index:\
`sudo su - solr -c "/opt/solr/bin/solr delete -c tethys_data"`
## Manage Solr service ## Manage Solr service
```bash ```bash
@ -106,6 +103,9 @@ sudo service solr stop
## Uninstall SOLR ## Uninstall SOLR
delete your solr index:\
`sudo su - solr -c "/opt/solr/bin/solr delete -c tethys_data"`
```bash ```bash
sudo service solr stop sudo service solr stop
sudo rm -r /var/solr sudo rm -r /var/solr