diff --git a/dev/.env b/dev/.env index e2fee74c1..be2bab737 100644 --- a/dev/.env +++ b/dev/.env @@ -26,7 +26,7 @@ DB_CONNECTION=sqlite # DB_USERNAME=root # DB_PASSWORD= -SESSION_DRIVER=database +SESSION_DRIVER=array SESSION_LIFETIME=120 SESSION_ENCRYPT=false SESSION_PATH=/ @@ -34,9 +34,9 @@ SESSION_DOMAIN=null BROADCAST_CONNECTION=log FILESYSTEM_DISK=local -QUEUE_CONNECTION=database +QUEUE_CONNECTION=null -CACHE_STORE=database +CACHE_STORE=null CACHE_PREFIX= MEMCACHED_HOST=127.0.0.1 diff --git a/dev/bootstrap/app.php b/dev/bootstrap/app.php index 7b162dac3..04db9e666 100644 --- a/dev/bootstrap/app.php +++ b/dev/bootstrap/app.php @@ -6,8 +6,6 @@ return Application::configure(basePath: dirname(__DIR__)) ->withRouting( - web: __DIR__.'/../routes/web.php', - commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { diff --git a/dev/composer.json b/dev/composer.json index 908c76447..21a5c760d 100644 --- a/dev/composer.json +++ b/dev/composer.json @@ -42,7 +42,9 @@ "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, - "allow-plugins": false + "allow-plugins": { + "php-http/discovery": true + } }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/dev/database/.gitignore b/dev/database/.gitignore deleted file mode 100644 index 9b19b93c9..000000000 --- a/dev/database/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.sqlite* diff --git a/dev/database/factories/.gitignore b/dev/database/factories/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/dev/database/factories/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/dev/database/migrations/.gitignore b/dev/database/migrations/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/dev/database/migrations/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/dev/database/seeders/.gitignore b/dev/database/seeders/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/dev/database/seeders/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/dev/public/.htaccess b/dev/public/.htaccess new file mode 100644 index 000000000..3aec5e27e --- /dev/null +++ b/dev/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/dev/public/favicon.ico b/dev/public/favicon.ico new file mode 100644 index 000000000..e69de29bb diff --git a/dev/public/index.php b/dev/public/index.php new file mode 100644 index 000000000..a7e88ee77 --- /dev/null +++ b/dev/public/index.php @@ -0,0 +1,21 @@ +handleRequest(Request::capture()); diff --git a/dev/storage/app/.gitignore b/dev/storage/app/.gitignore index ea2338ad8..8f4803c05 100644 --- a/dev/storage/app/.gitignore +++ b/dev/storage/app/.gitignore @@ -1,3 +1,3 @@ -public +* !public/ !.gitignore diff --git a/dev/storage/app/public/.gitignore b/dev/storage/app/public/.gitignore index c1aefd201..d6b7ef32c 100644 --- a/dev/storage/app/public/.gitignore +++ b/dev/storage/app/public/.gitignore @@ -1,2 +1,2 @@ -.gitignore +* !.gitignore diff --git a/dev/storage/framework/cache/.gitignore b/dev/storage/framework/cache/.gitignore index 08b0ba604..01e4a6cda 100644 --- a/dev/storage/framework/cache/.gitignore +++ b/dev/storage/framework/cache/.gitignore @@ -1,3 +1,3 @@ -data +* !data/ !.gitignore diff --git a/dev/storage/framework/cache/data/.gitignore b/dev/storage/framework/cache/data/.gitignore index c1aefd201..d6b7ef32c 100644 --- a/dev/storage/framework/cache/data/.gitignore +++ b/dev/storage/framework/cache/data/.gitignore @@ -1,2 +1,2 @@ -.gitignore +* !.gitignore diff --git a/dev/storage/framework/sessions/.gitignore b/dev/storage/framework/sessions/.gitignore index c1aefd201..d6b7ef32c 100644 --- a/dev/storage/framework/sessions/.gitignore +++ b/dev/storage/framework/sessions/.gitignore @@ -1,2 +1,2 @@ -.gitignore +* !.gitignore diff --git a/dev/storage/framework/testing/.gitignore b/dev/storage/framework/testing/.gitignore index c1aefd201..d6b7ef32c 100644 --- a/dev/storage/framework/testing/.gitignore +++ b/dev/storage/framework/testing/.gitignore @@ -1,2 +1,2 @@ -.gitignore +* !.gitignore diff --git a/dev/storage/framework/views/.gitignore b/dev/storage/framework/views/.gitignore index b60fc1d20..d6b7ef32c 100644 --- a/dev/storage/framework/views/.gitignore +++ b/dev/storage/framework/views/.gitignore @@ -1,3 +1,2 @@ -.gitignore -!.gitignore * +!.gitignore diff --git a/dev/storage/logs/.gitignore b/dev/storage/logs/.gitignore index c1aefd201..d6b7ef32c 100644 --- a/dev/storage/logs/.gitignore +++ b/dev/storage/logs/.gitignore @@ -1,2 +1,2 @@ -.gitignore +* !.gitignore diff --git a/docker-compose.yaml b/docker-compose.yaml index ea91398d3..558f69520 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,7 +15,14 @@ services: depends_on: setup: condition: service_completed_successfully - command: sleep infinity + command: | + php -S localhost:8000 -t ./dev/public + healthcheck: + test: curl -f http://localhost:8000/up || exit 1 + start_period: 1m + interval: 1m + timeout: 10s + retries: 3 setup: <<: *project