LOCAL PRESET CONFIG:
add these key-value vars to the local env file
sudo nano .env.local
- WWWGROUP=1000
- WWWUSER=1000
change the config/app.php APP_KEY env var for pure AES-256-CBC key
sudo nano config/app.php
- before: 'key' => env('APP_KEY')
- after: 'key' => 'base64:TJpFx8giodlXRvpf/pgpeNuailm+6gEsARec/EJUTpw='
LOCAL INSTALLATION SETUP:
clone and access the repo
- sudo git clone https://gitlab.com/knopmickael/gente-terra.git
- cd gente-terra
change the storage and bootstrap.cache folders permissions
- sudo chmod -R 777 storage bootstrap/cache
start the sail container in second plan
- ./vendor/bin/sail up -d
access the container
- docker exec -it CONTAINER_ID bash
inside it, run
- cp .env.local .env
- php artisan storage:link
- php artisan config:cache