From 33a93e666a79759be61bad3b9a11a04dd81e6a53 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Wed, 23 Feb 2022 10:22:06 +0100 Subject: [PATCH 1/3] #60 - wip --- public/avatars | 1 - 1 file changed, 1 deletion(-) delete mode 120000 public/avatars diff --git a/public/avatars b/public/avatars deleted file mode 120000 index c6a773f..0000000 --- a/public/avatars +++ /dev/null @@ -1 +0,0 @@ -/application/storage/app/avatars \ No newline at end of file -- 2.52.0 From c223b92bb1653839e2b397d0d349e26f31273453 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Wed, 23 Feb 2022 10:25:30 +0100 Subject: [PATCH 2/3] #60 - wip --- .gitignore | 1 + config/filesystems.php | 1 - storage/app/.gitignore | 1 + storage/app/avatars/.gitignore | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 storage/app/avatars/.gitignore diff --git a/.gitignore b/.gitignore index 63cf7ed..113d45d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /node_modules /public/hot /public/storage +/public/avatars /public/js/ /public/css/ /public/mix-manifest.json diff --git a/config/filesystems.php b/config/filesystems.php index 1d44e8c..af08bf5 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -17,7 +17,6 @@ return [ ], ], "links" => [ - public_path("storage") => storage_path("app/public"), public_path("avatars") => storage_path("app/avatars"), ], ]; diff --git a/storage/app/.gitignore b/storage/app/.gitignore index 8f4803c..e857769 100644 --- a/storage/app/.gitignore +++ b/storage/app/.gitignore @@ -1,3 +1,4 @@ * !public/ +!avatars/ !.gitignore diff --git a/storage/app/avatars/.gitignore b/storage/app/avatars/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/avatars/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore -- 2.52.0 From 6057e2f0039710891b6979dd4c0b40fc77a567c7 Mon Sep 17 00:00:00 2001 From: EwelinaLasowy Date: Wed, 23 Feb 2022 10:41:58 +0100 Subject: [PATCH 3/3] #60 - fix --- readme.md | 4 ++++ setup | 1 + 2 files changed, 5 insertions(+) diff --git a/readme.md b/readme.md index f1e4372..d25b8f7 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/setup b/setup index 2fd090a..7e8b15c 100644 --- a/setup +++ b/setup @@ -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 -- 2.52.0