重新定义了symfony根项目

重新定义了symfony根项目

本文介绍了重新定义了symfony根项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我接管了一个具有类似于以下文件结构的项目:

I took over a project with a file structure similar to this:

Project /
     conf /
     symfony /
         app /
         src /
         ...
     scripts
     other folders ...

最近我对capifony感兴趣,我尝试使用此文件结构来设置capifony,但是它不起作用,因为部署的capifony在<$ c $中查找symfony文件c> ./ Web ./ App 等...

I am interested in capifony recently and I tried to set up capifony with this file structure but it does not work because when deployed capifony seeks symfony files in ./Web ./App etc ...

文件结构,我想知道是否有一种方法可以使capifony symfony的根位于 ./ Symfony 而不是 ./

Before changing the file structure, I would like to know if there is a way to tell capifony the root of symfony is in ./Symfony instead of ./ ?

我试图重新定义 app_path web_path deploy.rb 文件中的c $ c>,但这似乎还不够。

I tried to redefine app_path and web_path in deploy.rb file, but it does not seem enough.

推荐答案

在根项目目录中运行以下命令(假设您尚未对项目进行分类):

Run the following command in your root project directory (assuming you haven't capified your project yet):

capifony -s 2 -p symfony/app .

这篇关于重新定义了symfony根项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 13:05