deployer
deployer copied to clipboard
[Symfony] database:migrate should only be executed once
Because database:migration task alters the database, it should only be executed once, not by every host.
As such, ->once() should be called when defining the task
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Well, it depends.
You can do it by adding in your deploy.php:
task('database:migration')->once();