Skip to content

Commit

Permalink
Add conditional check for storage link existence in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
tobifra committed Mar 16, 2024
1 parent 5b042f3 commit 69d3ba1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ echo "All frontend files uploaded to the server."

ssh -l $SSH_USERNAME -T $SSH_HOST -p $SSH_PORT <<EOF
cd $SSH_BACKEND_DIRECTORY
php artisan storage:link
if [ ! -L "public/storage" ]; then
php artisan storage:link
fi
php artisan migrate --force
if [ "$SEED_DB" == "true" ] ; then
Expand Down

0 comments on commit 69d3ba1

Please sign in to comment.