Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer exit batch file after finish execution

I am trying to do some automation with batch file to perform installing of laravel and then continue with moving files & folder.

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 finish installing laravel, it exit the batch file.

How can I get the process going after the composer task is done?

like image 380
user1995781 Avatar asked May 23 '15 04:05

user1995781


1 Answers

I could bet that the installer is a composer.bat Batch file! If so, execute it via call command:

@echo off

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

echo Laravel installing is done... Now moving files and folder...
like image 197
Aacini Avatar answered Sep 18 '22 03:09

Aacini