Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/CD: symlink not created resulting in CD not working anymore #350

Open
kulisse opened this issue Sep 29, 2021 · 1 comment
Open

CI/CD: symlink not created resulting in CD not working anymore #350

kulisse opened this issue Sep 29, 2021 · 1 comment

Comments

@kulisse
Copy link
Collaborator

kulisse commented Sep 29, 2021

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.

@kulisse
Copy link
Collaborator Author

kulisse commented Sep 29, 2021

sudo mv /var/www/caravel/backend/public/uploads/users/* /var/www/shared/uploads/users/
sudo mv /var/www/caravel/backend/public/uploads/groups/* /var/www/shared/uploads/groups/
sudo rm -r uploads/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant