Skip to content

Commit 4eead2d

Browse files
committed
Code build
1 parent 90f942e commit 4eead2d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

buildspec.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
runtime-versions:
6+
php: 8.3
7+
commands:
8+
- echo Installing Composer and dependencies...
9+
- curl -sS https://getcomposer.org/installer | php
10+
- php composer.phar install --no-interaction --prefer-dist --optimize-autoloader
11+
12+
pre_build:
13+
commands:
14+
- echo Setting Laravel permissions...
15+
- cp .env.example .env
16+
- php artisan config:clear
17+
- php artisan cache:clear
18+
- php artisan config:cache
19+
- php artisan route:cache
20+
- php artisan view:cache
21+
22+
build:
23+
commands:
24+
- echo Running Laravel Tests...
25+
- php artisan test || true # You can fail the build if test fails
26+
- echo Build completed.
27+
28+
post_build:
29+
commands:
30+
- echo Deployment ready! Triggering post-deployment hook...

0 commit comments

Comments
 (0)