Redefined symfony root project

2019-07-27 23:17发布

问题:

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

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

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 ...

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 ./ ?

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

回答1:

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

capifony -s 2 -p symfony/app .