Composer output batch file after execution completes

I am trying to do an automation with a batch file to do a laravel install and then continue moving files and folders.

My batch file looks something like this:

@echo off

echo Installing laravel...
composer create-project laravel/laravel system --prefer-dist

echo Laravel installing is done... Now moving files and folder...
......

      

The problem is as soon as the composer

laravel installation finishes, it exits the batch file.

How can I complete the process after completing the task composer

?

+3


source to share


1 answer


I would bet the installer is a composer.bat

Batch file! If so, run the command call

:



@echo off

echo Installing laravel...
call composer create-project laravel/laravel system --prefer-dist

echo Laravel installing is done... Now moving files and folder...

      

+4


source







All Articles