diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile index 45bdd6e..31f841d 100644 --- a/docker/app/Dockerfile +++ b/docker/app/Dockerfile @@ -51,6 +51,8 @@ RUN mkdir -p storage/logs storage/framework/cache storage/framework/sessions \ && chown -R www-data:www-data storage bootstrap/cache \ && chmod -R 775 storage bootstrap/cache +COPY docker/app/php.ini /usr/local/etc/php/conf.d/zz-app.ini + USER www-data EXPOSE 80 diff --git a/docker/app/php.ini b/docker/app/php.ini new file mode 100644 index 0000000..cfde6ca --- /dev/null +++ b/docker/app/php.ini @@ -0,0 +1,20 @@ +[opcache] +opcache.enable=1 +opcache.enable_cli=0 +opcache.memory_consumption=256 +opcache.max_accelerated_files=20000 +opcache.validate_timestamps=1 +opcache.revalidate_freq=0 +opcache.jit=tracing +opcache.jit_buffer_size=128M + +[Date] +date.timezone=Europe/Berlin + +[PHP] +memory_limit=512M +post_max_size=50M +upload_max_filesize=50M +max_execution_time=60 +display_errors=On +error_reporting=E_ALL diff --git a/package.json b/package.json index 35297e4..10e9c16 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,11 @@ "private": true, "type": "module", "scripts": { + "dev": "vite", "build": "vite build", - "dev": "vite" + "build:watch": "vite build --watch", + "preview": "vite preview", + "lint": "echo 'no lint configured'" }, "devDependencies": { "@tailwindcss/vite": "^4.3.0", diff --git a/vite.config.js b/vite.config.js index 8b34acf..9077b01 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,11 +4,17 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [ + tailwindcss(), laravel({ input: ['resources/css/app.css', 'resources/js/app.js'], - refresh: true, + refresh: [ + 'resources/views/**/*.blade.php', + 'resources/css/**/*.css', + 'resources/js/**/*.js', + 'app/Livewire/**/*.php', + 'lang/**/*.php', + ], }), - tailwindcss(), ], server: { host: '0.0.0.0',