Skip to content

Commit

Permalink
Fix laravel init
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Sep 14, 2024
1 parent de4ce98 commit c4ec463
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/init
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ if [[ -n "${NGINX_VHOST_PRESET}" ]]; then
if [[ "${NGINX_VHOST_PRESET}" =~ ^laravel ]]; then
echo "Running init for Laravel preset"

mkdir -p "${APP_ROOT}/storage/app"
mkdir -p "${APP_ROOT}/storage/app"
files_link "${APP_ROOT}/storage/app/public"
ln -sf "${APP_ROOT}/storage/app/public" "${APP_ROOT}/public/storage"
# public/storage dir is normally linked from the storage/app/public
# but in our case they are both a symlink to shared storage
files_link "${APP_ROOT}/public/storage"
fi
fi

0 comments on commit c4ec463

Please sign in to comment.