Sometimes a continuous delivery github action will fail during "create symlink" step with the error below:
Run sudo ln -s /var/www/shared/storage /var/www/caravel/backend -f
ln: /var/www/caravel/backend/public/uploads: cannot overwrite directory
Error: Process completed with exit code 1.
Apparently this is because sometimes the symlink is not created and laravel create a directory automatically. When this happens, you can't create a symlink anymore.
The workaround is to go on the server in /var/www/caravel/backend/public/uploads and move everything inside this folder to /var/www/shared and then delete the uploads folder.
Sometimes a continuous delivery github action will fail during "create symlink" step with the error below:
Run sudo ln -s /var/www/shared/storage /var/www/caravel/backend -f
ln: /var/www/caravel/backend/public/uploads: cannot overwrite directory
Error: Process completed with exit code 1.
Apparently this is because sometimes the symlink is not created and laravel create a directory automatically. When this happens, you can't create a symlink anymore.
The workaround is to go on the server in /var/www/caravel/backend/public/uploads and move everything inside this folder to /var/www/shared and then delete the uploads folder.