[solution] laravel commandline auto yes seed artisan migrate

By.

min read

My profile

Share this:

use expect to answer “yes” to all questions, handy if you script your deploys remotely

[code:1:f2be074f4e]!/usr/bin/expect -f
set timeout -1
spawn php artisan migrate:refresh –seed
match_max 1000000
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect eof
[/code:1:f2be074f4e]

call

[code:1:f2be074f4e]expect yourscript.sh[/code:1:f2be074f4e]

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *