mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Fix for issue #2407 - Laravel migrations are only run on the first host due there being a ->once
on the task (#2408)
Fix for issue #2407 - Laravel migrations are only run on the first host due there being a `->once` on the task
This commit is contained in:
parent
f9141c0cf7
commit
4ac6e131cc
@ -84,7 +84,7 @@ desc('Enable maintenance mode');
|
|||||||
task('artisan:down', artisan('down', ['runInCurrent', 'showOutput']));
|
task('artisan:down', artisan('down', ['runInCurrent', 'showOutput']));
|
||||||
|
|
||||||
desc('Execute artisan migrate');
|
desc('Execute artisan migrate');
|
||||||
task('artisan:migrate', artisan('migrate --force', ['skipIfNoEnv']))->once();
|
task('artisan:migrate', artisan('migrate --force', ['skipIfNoEnv']));
|
||||||
|
|
||||||
desc('Execute artisan migrate:fresh');
|
desc('Execute artisan migrate:fresh');
|
||||||
task('artisan:migrate:fresh', artisan('migrate:fresh --force'));
|
task('artisan:migrate:fresh', artisan('migrate:fresh --force'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user