mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
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:
1
debian/scripts/init.sh
vendored
1
debian/scripts/init.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user