如何使用Capifony部署symfony 3应用程序?(How to deploy a symfony 3 app with Capifony? [closed])

编程入门 行业动态 更新时间:2024-10-27 12:38:28
如何使用Capifony部署symfony 3应用程序?(How to deploy a symfony 3 app with Capifony? [closed])

我的问题是我无法正确使用我的项目在Symfony 3上使用capifony。安装composer依赖项后,我遇到运行app / console命令和回滚部署的错误。

我知道在symfony 3应用程序/控制台移动到bin / console。 但是我怎么能改变Capifony?

谢谢!

My problem is that I can't use capifony correctly with my project on the Symfony 3. After installing composer dependencies I get an error with running app/console commands and rollback of deploy.

I know that in symfony 3 app/console moved to bin/console. But how I can change in Capifony?

Thanks!

最满意答案

Capifony不再维护,因此根据Symfony版本不会发展。

Capifony基于Capistrano v2.x并将坚持这个版本(即Capifony是功能冻结,并且只接受错误修复)。

在撰写本文时,Capistrano v3是目前的主要版本,而Capifony与它不兼容。

别担心,有一个插件! 使用Capistrano v3 + capistrano / symfony(受Capifony影响很大)可能是新项目的选择! 您可以阅读有关capifony及其未来的更多信息。

从这里开始 。

另外,从capifony网站的第一行:

capifony是一个部署配方集合,适用于symfony和Symfony2应用程序。

所以,不要使用symfony3,也不会这样。

我知道迁移有点困难,但您应该通过其symfony任务将部署工作流程更改为Capistrano 。

然后,您将能够配置控制台路径:

set :symfony_console_path, "bin/console"

我怀疑你可以在Capifony中使用它,你应该在升级之前尝试一下。

注意您将遇到与Symfony3体系结构相关的其他问题,例如cache和logs目录。 查看所有可用配置 。

Capifony is no longer maintained, so it doesn't evolves depending on Symfony releases.

Capifony is based on Capistrano v2.x and will stick to this version (i.e. Capifony is feature-frozen, and will only accept bug fixes).

At the time of writing, Capistrano v3 is the current major version, and Capifony is not compatible with it.

Don't worry, there is a plugin for that! Using Capistrano v3 + capistrano/symfony (heavily inspired by Capifony) may be the way to go for new projects! You can read more on capifony and its future.

From here.

Plus, from the first lines of the capifony website:

capifony is a deployment recipes collection that works with both symfony and Symfony2 applications.

So, don't work with symfony3 and will not go in this way.

I know it's a bit hard to migrate, but you should really change your deployment workflow to Capistrano with its symfony tasks.

Then you'll be able to configure the console path:

set :symfony_console_path, "bin/console"

I suspect that you can use it in Capifony, you should try it before upgrading.

Note You'll have other problems related to the Symfony3 architecture, such as the cache and logs directory. See all available configurations.

更多推荐

本文发布于:2023-08-03 17:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1393641.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   应用程序   Capifony   closed   symfony

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!