phalcon / phalcon-devtools

Phalcon Developer Tools
https://docs.phalcon.io/latest/en/devtools
Other
1.33k stars 630 forks source link

Allow to run skeleton project from subdirectories. #1403

Open ruudboon opened 4 years ago

ruudboon commented 4 years ago

Some users are running Phalcon from a subdirectory. For example '/store/' will show the index. Can yo add some tests and make sure this is possible? These test should give a clear view if changes are required from the Phalcon handle() see https://github.com/phalcon/cphalcon/issues/14559

Jeckerson commented 4 years ago

After some tries, I ended to fail because of PHP built-in web-server that we are using for serving WebTools...

We need to add Apache/Nginx configs or try to rewrite .htrouter.php. But main approach of serving devtools for local development is to serve single app. This also was discussed little bit with @sergeyklay .

ruudboon commented 4 years ago

I agree on the dev tools / WebTools part. Running it on the built-in webserver is fine.

From my point of few Skeletons can be used to start a new project that you would like to run on a production server. So for the generated skeletons users should be ready for nginx/apache