I create tasks to deploy my app with envoy, one from this tasks is to create symlink for storage:
@task('app_storage_link')
cd //storage;
rm -r app
ln -s /data/app app;
chgrp -h www-data app;
@endtask
Now, I'm trying to run this: Storage::disk('local')->put('test.txt', 'Some txt content');
but I get there error: Impossible to create the root directory "".
As second example I tried to run a command, the import data is in /var/www/project/data/app/public/import.xml but there is also a error comming simplexml_load_file(): I/O warning : failed to load external entity "/var/www/project/releases/release_20180303153006/storage/app/public/list.xml"
Is my symlink really correct? Maybe there is some other way to create symlinks for folders?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire