Update init.sh

Makes sure the storage directory exists, otherwise it will fail with

```sh
In ServerStateFile.php line 49:
                                       
  Unable to write to process ID file.  
```

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Stavros Kois
2025-08-11 12:56:27 +03:00
committed by GitHub
parent 9944d43f0b
commit 6e73e3af9d

View File

@@ -49,6 +49,7 @@ if [ "$*" = 'frankenphp php-cli artisan octane:frankenphp' ] || [ "${1#-}" != "$
[ -d /app/storage/framework/sessions ] || mkdir -p /app/storage/framework/sessions
[ -d /app/storage/framework/views ] || mkdir -p /app/storage/framework/views
[ -d /app/storage/framework/cache ] || mkdir -p /app/storage/framework/cache
[ -d /app/storage/storage ] || mkdir -p /app/storage/storage
if [ "$APP_ENV" = "production" ]; then
frankenphp php-cli artisan optimize