Browse Source

Update 'README.md'

master
emilian.mitocariu 2 years ago
parent
commit
4ea9219b3f
  1. 28
      README.md

28
README.md

@ -13,13 +13,15 @@
## :rocket: Installation
**NOTE**
The installation steps below were tested on an Ubuntu 20.04 LTS machine and should be adapted for each specific environment.
The installation steps below were tested on an Ubuntu 20.04 LTS machine, all commands assume sudo being used unless specified otherwise and should be adapted for each specific environment.
Disk size for this service should be at least 10GB.
---
### Update package repository
```
sudo apt-get update -y
apt-get update -y
```
### Install Apache2
@ -55,6 +57,7 @@ a2enmod \
alias \
proxy_fcgi \
remoteip && \
sed -i "s/DocumentRoot \/var\/www\/html/DocumentRoot \/var\/www\/html\/searchanddisplace-ingest\/public/g" /etc/apache2/sites-available/000-default.conf && \
sed -i "/^[[:blank:]]ErrorLog/i\ <FilesMatch \.php\$>" /etc/apache2/sites-available/000-default.conf && \
sed -i "/^[[:blank:]]ErrorLog/i\ SetHandler \"proxy:unix:\/var\/run\/php\/php7.4-fpm.sock|fcgi:\/\/localhost\"" /etc/apache2/sites-available/000-default.conf && \
sed -i "/^[[[:blank:]]ErrorLog/i\ </\FilesMatch>" /etc/apache2/sites-available/000-default.conf && \
@ -162,6 +165,17 @@ The value for the **command** key should reflect the app path (in the example ab
The **stdout_logfile** value is the log file. All parent directories must already exist.
### Install app
- Download app
```
cd /var/www/html && \
git clone https://git.law/newroco/searchanddisplace-ingest.git && \
chown -R www-data:www-data searchanddisplace-ingest && \
cd searchanddisplace-ingest
```
- Install and configure app
```bash
# Generate environment file
cp .env.example .env
@ -172,12 +186,20 @@ composer install
# Generate app key
php artisan key:generate
# Change the value for the QUEUE_CONNECTION to redis, if it is not set already
# Change in .env the value for the QUEUE_CONNECTION to redis, if it is not set already
# Deploy supervisor
supervisorctl reread
supervisorctl update
supervisorctl start all
```
- Check the queue worker is running
```
supervisorctl status
```
### Search and Displace Core Setup
- Install the `Search and Displace Core` app, found here https://git.law/newroco/searchanddisplace-core
- Get the URL of the `Search and Displace Core` app and add it to the `WEBHOOK_CORE_URL` variable in `.env`

Loading…
Cancel
Save