В моем приложении laravel 5.7 я использую хранилище с командой
php artisan storage:link
, так как я загружаю свои файлы в подкаталог / storage, они не загружаются в git, так как root .gitignore моего проекта имеет параметры по умолчанию:
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea $ git add .
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: .gitignore
new file: public/storage
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
Я пытался изменить этот файл следующим образом:
/node_modules
/public/hot
/public/storage/clockwork
/public/storage/debugbar
/public/storage/framework
/public/storage/logs
/storage/clockwork
/storage/debugbar
/storage/framework
/storage/logs
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
Но похоже, что это не помогло, так как никакие файлы не были добавлены к загрузке git (у меня много файлов в
$ git add .
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: .gitignore
new file: public/storage/storage/):
$ git add .
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: .gitignore
new file: public/storage
Какой правильный путь?
Спасибо!