#60 - fix avatars #61

Merged
Baakoma merged 3 commits from #60-fix-avatars into main 2022-02-23 11:11:54 +01:00
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