#60 - fix avatars (#61)

* #60 - wip

* #60 - wip

* #60 - fix

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
Adrian Hopek 2022-02-23 11:11:53 +01:00 committed by GitHub
parent 10b5d0c37e
commit 5cb46d2fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/node_modules
/public/hot
/public/storage
/public/avatars
/public/js/
/public/css/
/public/mix-manifest.json

View File

@ -17,7 +17,6 @@ return [
],
],
"links" => [
public_path("storage") => storage_path("app/public"),
public_path("avatars") => storage_path("app/avatars"),
],
];

View File

@ -1 +0,0 @@
/application/storage/app/avatars

View File

@ -37,6 +37,10 @@ Directory structure little differs from a standard Laravel tree. We decided to r
dcr php php artisan key:generate
- generate storage link
dcr php php artisan storage:link
- migrate and seed database
dcr php php artisan migrate --seed

1
setup
View File

@ -8,6 +8,7 @@ docker-compose build --no-cache --pull
docker-compose up -d
docker-compose run --rm -u "$(id -u):$(id -g)" php composer install
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan key:generate
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan storage:link
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan migrate --seed
docker-compose run --rm -u "$(id -u):$(id -g)" node npm install
docker-compose run --rm -u "$(id -u):$(id -g)" node npm run dev

View File

@ -1,3 +1,4 @@
*
!public/
!avatars/
!.gitignore

2
storage/app/avatars/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore