Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ APP_NAME=Infbyte
APP_ENV=local
APP_DEBUG=true
APP_URL=http://localhost
APP_CONFIG_CACHE_TYPE=sharded
APP_CONTAINER_COMPILED=bootstrap/cache/container.php
APP_CONTAINER_COMPILED_ACTIVATION=off

ROUTER_MATCHER=fused
Expand Down
10 changes: 6 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@
/app/Support export-ignore
/bin export-ignore
/bootstrap/cache/*.php export-ignore
/bootstrap/cache/config export-ignore
/bootstrap/cache/console export-ignore
/bootstrap/cache/container export-ignore
/bootstrap/cache/routes export-ignore
/bootstrap/cache/config/* export-ignore
/bootstrap/cache/config/.gitignore -export-ignore
/bootstrap/cache/container/* export-ignore
/bootstrap/cache/container/.gitignore -export-ignore
/bootstrap/cache/routes/* export-ignore
/bootstrap/cache/routes/.gitignore -export-ignore
/database export-ignore
/resources export-ignore
/storage/app export-ignore
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
/.windsurf/
/bootstrap/cache/*
!/bootstrap/cache/.gitignore
!/bootstrap/cache/config/
/bootstrap/cache/config/*
!/bootstrap/cache/config/.gitignore
!/bootstrap/cache/container/
/bootstrap/cache/container/*
!/bootstrap/cache/container/.gitignore
!/bootstrap/cache/routes/
/bootstrap/cache/routes/*
!/bootstrap/cache/routes/.gitignore
/database/*.sqlite
/vendor/
*~
Expand Down
3 changes: 3 additions & 0 deletions bootstrap/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*
!.gitignore
!config/
!container/
!routes/
2 changes: 2 additions & 0 deletions bootstrap/cache/config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions bootstrap/cache/container/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions bootstrap/cache/routes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
5 changes: 2 additions & 3 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@
|--------------------------------------------------------------------------
|
| Foundation 2.0 is lazy by default and owns execution scopes directly.
| There is no application request_scope switch. Compiled container activation
| remains opt-in until a deployment deliberately builds and enables it.
| There is no application request_scope or compiled-path switch. Foundation
| owns the fixed per-runtime artifact paths. Activation remains opt-in.
|
*/
'container' => [
'alias' => env('APP_CONTAINER_ALIAS'),
'environment' => env_string('APP_ENV', 'local'),
'lazy_loading' => env_bool('APP_CONTAINER_LAZY_LOADING', true),
'compiled' => env_string('APP_CONTAINER_COMPILED', 'bootstrap/cache/container.php'),
'compiled_activation' => env_string('APP_CONTAINER_COMPILED_ACTIVATION', 'off'),
'debug_tracing' => [
'enabled' => env_bool('APP_CONTAINER_DEBUG_TRACING', false),
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ fi
runtime_directories=(
"bootstrap/cache"
"bootstrap/cache/config"
"bootstrap/cache/container"
"bootstrap/cache/routes"
"storage"
"storage/app"
Expand Down
16 changes: 9 additions & 7 deletions tests/Feature/SkeletonDistributionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
->and($attributes)->toContain('/tests/Feature/RouteCacheCliTest.php export-ignore')
->and($attributes)->toContain('/tests/Feature/SkeletonDistributionTest.php export-ignore')
->and($attributes)->toContain('/bootstrap/cache/*.php export-ignore')
->and($attributes)->toContain('/bootstrap/cache/config export-ignore')
->and($attributes)->toContain('/bootstrap/cache/console export-ignore')
->and($attributes)->toContain('/bootstrap/cache/container export-ignore')
->and($attributes)->toContain('/bootstrap/cache/routes export-ignore');
->and($attributes)->toContain('/bootstrap/cache/config/* export-ignore')
->and($attributes)->toContain('/bootstrap/cache/config/.gitignore -export-ignore')
->and($attributes)->toContain('/bootstrap/cache/container/* export-ignore')
->and($attributes)->toContain('/bootstrap/cache/container/.gitignore -export-ignore')
->and($attributes)->toContain('/bootstrap/cache/routes/* export-ignore')
->and($attributes)->toContain('/bootstrap/cache/routes/.gitignore -export-ignore');
});

it('builds a clean create-project archive and provisions its environment', function (): void {
Expand Down Expand Up @@ -84,9 +86,9 @@
expect($project . '/composer.json')->toBeFile()
->and($project . '/bootstrap/install.php')->not->toBeFile()
->and($project . '/bootstrap/cache/.gitignore')->toBeFile()
->and($project . '/bootstrap/cache/config')->not->toBeDirectory()
->and($project . '/bootstrap/cache/container')->not->toBeDirectory()
->and($project . '/bootstrap/cache/routes')->not->toBeDirectory()
->and($project . '/bootstrap/cache/config/.gitignore')->toBeFile()
->and($project . '/bootstrap/cache/container/.gitignore')->toBeFile()
->and($project . '/bootstrap/cache/routes/.gitignore')->toBeFile()
->and($project . '/storage/cache/.gitignore')->toBeFile()
->and($project . '/storage/logs/.gitignore')->toBeFile()
->and($project . '/storage/sessions/.gitignore')->toBeFile()
Expand Down