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
parent
8df9708258
commit
27c2d07e3c
|
@ -32,8 +32,10 @@ sudo -u www-data git clone https://github.com/cerebrate-project/cerebrate.git /v
|
||||||
Run composer
|
Run composer
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
mkdir -p /var/www/.composer
|
||||||
|
sudo chown www-data:www-data /var/www/.composer
|
||||||
cd /var/www/cerebrate
|
cd /var/www/cerebrate
|
||||||
sudo -u www-data composer install
|
sudo -H -u www-data composer install
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a database for cerebrate
|
Create a database for cerebrate
|
||||||
|
|
Loading…
Reference in New Issue