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/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 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 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