Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1705a3688b | ||
|
|
34b36f5d14 | ||
|
|
d6b74f01f9 | ||
|
|
5efedfabf8 |
@@ -1,2 +1,2 @@
|
|||||||
parameters:
|
parameters:
|
||||||
app.version: '1.9.12'
|
app.version: '1.9.14'
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ FROM php:8.4-fpm AS production
|
|||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libicu-dev libpq-dev libpng-dev libzip-dev libxml2-dev \
|
libicu-dev libpq-dev libpng-dev libzip-dev libxml2-dev \
|
||||||
nginx supervisor \
|
nginx supervisor qpdf \
|
||||||
&& docker-php-ext-install -j$(nproc) intl pdo_pgsql zip gd opcache \
|
&& docker-php-ext-install -j$(nproc) intl pdo_pgsql zip gd opcache \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ COPY --from=frontend-build /app/frontend/.output/public /var/www/html/frontend/.
|
|||||||
RUN echo "APP_ENV=prod" > /var/www/html/.env
|
RUN echo "APP_ENV=prod" > /var/www/html/.env
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
RUN mkdir -p /var/www/html/var /var/www/html/var/uploads \
|
RUN mkdir -p /var/www/html/var /var/www/html/var/uploads /var/www/html/var/storage/documents \
|
||||||
&& chown -R www-data:www-data /var/www/html/var
|
&& chown -R www-data:www-data /var/www/html/var
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|||||||
@@ -8,6 +8,19 @@ export INVENTORY_IMAGE_TAG="$TAG"
|
|||||||
|
|
||||||
echo "==> Deploying inventory:${TAG}..."
|
echo "==> Deploying inventory:${TAG}..."
|
||||||
|
|
||||||
|
# Fix storage directory structure (one-time migration fix)
|
||||||
|
# Files were nested under storage/storage/documents/ instead of storage/ directly
|
||||||
|
if [ -d "storage/storage/documents" ]; then
|
||||||
|
echo "==> Fixing storage directory structure..."
|
||||||
|
cp -a storage/storage/documents/* storage/ 2>/dev/null || true
|
||||||
|
rm -rf storage/storage
|
||||||
|
echo "==> Storage structure fixed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensure storage directory exists with correct ownership
|
||||||
|
mkdir -p storage
|
||||||
|
sudo chown -R www-data:www-data storage
|
||||||
|
|
||||||
echo "==> Enabling maintenance mode..."
|
echo "==> Enabling maintenance mode..."
|
||||||
touch maintenance.on
|
touch maintenance.on
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user