Keep composer happy with permissions

partial resolution to issue #75 

create/initialise a `/var/www/.composer` director to keep composer happy and explicitly tell sudo to set the home dir `-H`
pull/76/head
DocArmoryTech 2021-10-28 22:56:25 +01:00 committed by GitHub
parent 8df9708258
commit 27c2d07e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -32,8 +32,10 @@ sudo -u www-data git clone https://github.com/cerebrate-project/cerebrate.git /v
Run composer
```bash
mkdir -p /var/www/.composer
sudo chown www-data:www-data /var/www/.composer
cd /var/www/cerebrate
sudo -u www-data composer install
sudo -H -u www-data composer install
```
Create a database for cerebrate