Fix: Configure Laravel to use /app/data/storage

- Created laravel-paths.php to override storage path
- Patched bootstrap/app.php to load custom paths
- Removed symlink approach as /app/code is read-only
- Laravel will now use /app/data/storage directly
This commit is contained in:
Your Name
2025-10-22 09:14:03 -06:00
parent fec445e17e
commit 2de73967a4
3 changed files with 12 additions and 3 deletions

View File

@@ -64,6 +64,10 @@ COPY supervisor.conf /etc/supervisor/conf.d/anonaddy.conf
COPY start.sh /app/code/start.sh
COPY postfix-main.cf /tmp/postfix-main.cf
COPY postfix-master.cf /tmp/postfix-master.cf
COPY laravel-paths.php /app/code/laravel-paths.php
# Patch bootstrap/app.php to use custom storage paths
RUN sed -i '/\$app = new Illuminate/a require_once __DIR__.'\''/laravel-paths.php'\'';' /app/code/bootstrap/app.php
# Initialize data directory structure
RUN mkdir -p /tmp/data && \