Skip to content

Commit f457d9b

Browse files
committed
Update CompileBinaryCommand.php
1 parent 3180a59 commit f457d9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Commands/CompileBinaryCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function handle(): void
3333

3434
exec('mv ' . base_path('.env') . ' ' . base_path('.env.bak'));
3535

36+
file_put_contents(base_path('.env'), '');
37+
38+
exec('composer install --no-dev');
39+
3640
$extensions = collect([
3741
'bcmath',
3842
'calendar',
@@ -81,6 +85,9 @@ public function handle(): void
8185
});
8286

8387
exec('mv ' . base_path('.env.bak') . ' ' . base_path('.env'));
88+
exec('composer install');
89+
90+
info("Binary compiled successfully at {$destination}");
8491

8592
// if [[ $(git status --porcelain) ]]; then
8693
// git add builds/php-parser

0 commit comments

Comments
 (0)