开发者

What's the preferred way of deploying a Symfony2 application?

开发者 https://www.devze.com 2023-02-28 03:26 出处:网络
With symfony 1, there was a simple built in task for doing deployments via rsync. symfony project:deploy [--go] [--rsync-dir=\"...\"] [--rsync-options[=\"...\"]] server

With symfony 1, there was a simple built in task for doing deployments via rsync.

symfony project:deploy [--go] [--rsync-dir="..."] [--rsync-options[="..."]] server

For larger, more complicated projects, I was in the habit of extending or overwriting that task with something more robust, but it was useful to have in there for a simple application.

My question: Is there a standard, conventional way for deploying a Symfony2 applic开发者_如何学Cation?

There are different bundles out there that add console commands:

  • https://github.com/dator/DeployBundle
  • https://github.com/jfsimon/DeploymentBundle

There is also Capifony, which is really interesting but probably way more than I need for the simple app I'm working on.

Is there something else that I'm missing? I guess I'm surprised there isn't a simple built in command available out of the box.


I don't believe there is a standard, conventional way to deploy Symfony 2 applications yet, esspecially as Symfony 2 is still not at a stable release.

I highly recommened using Capifony, even for simple application deployment. It is well documented and is developed by KnpLabs so is likely to be supported long term.


If you don't want to deal with ruby and you liked the project:deploy command from Symfony 1.4 check this bundle

  • https://github.com/hpatoio/DeployBundle

You can easily install it using composer. Simply add "hpatoio/deploy-bundle": "~1.0" to your requirement.

0

精彩评论

暂无评论...
验证码 换一张
取 消