Skip to content
Snippets Groups Projects
Verified Commit 1f4e16c0 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat: add storage directory creation in update_symlinks task

- Added a check to see if the storage directory exists.
- If it does not exist, create the storage directory and its subdirectories (app, framework, logs) before linking.
parent 5c898e47
No related branches found
No related tags found
No related merge requests found
Pipeline #718 failed
......@@ -39,6 +39,15 @@
@endtask
@task('update_symlinks')
echo "Checking if storage directory exists"
if [ ! -d {{ $app_dir }}/storage ]; then
echo "Creating storage directory"
mkdir -p {{ $app_dir }}/storage
mkdir -p {{ $app_dir }}/storage/app
mkdir -p {{ $app_dir }}/storage/framework
mkdir -p {{ $app_dir }}/storage/logs
fi
echo "Linking storage directory"
rm -rf {{ $new_release_dir }}/storage
ln -nfs {{ $app_dir }}/storage {{ $new_release_dir }}/storage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment