- .env configuration
parent
76b5ca1bd5
commit
a6077279bf
9
Home.md
9
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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user