deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.56k stars 1.48k forks source link

[Symfony] database:migrate should only be executed once #3687

Closed Mika56 closed 2 weeks ago

Mika56 commented 1 year ago

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

Fund with Polar

antonmedv commented 1 year ago

Well, it depends.

You can do it by adding in your deploy.php:

task('database:migration')->once();
github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]

github-actions[bot] commented 2 weeks ago

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com/deployphp/deployer/discussions/3888]