This commit is contained in:
Saufi
2026-05-26 11:04:57 +08:00
parent 70f03fa314
commit c4d825e649
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ services:
container_name: hafiz_tunggakan_app container_name: hafiz_tunggakan_app
restart: unless-stopped restart: unless-stopped
ports: ports:
- "${APP_PORT:-8000}:8000" - "${APP_PORT:-8005}:80"
environment: environment:
APP_NAME: "Hafiz Tunggakan" APP_NAME: "Hafiz Tunggakan"
APP_ENV: "${APP_ENV:-production}" APP_ENV: "${APP_ENV:-production}"

View File

@@ -2,10 +2,11 @@
set -e set -e
if [ -z "${APP_KEY}" ]; then if [ -z "${APP_KEY}" ]; then
php artisan key:generate --force --no-interaction export APP_KEY="base64:$(php -r 'echo base64_encode(random_bytes(32));')"
fi fi
mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache
chmod -R ug+rwX storage bootstrap/cache
php artisan config:clear --no-interaction php artisan config:clear --no-interaction
php artisan view:cache --no-interaction php artisan view:cache --no-interaction