Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony2 Capifony app_dev.php not found

I've deployed my Symfony2 website to an external development server, however it hasn't pulled the app_dev.php file from my github repository. app.php has been pulled and I can access the site from there but if I go to /app_dev.php I get a 404 not found because the file does not exist on the server. The file is definitely in my github repository though and is not within my .gitignore file.

like image 296
user1961082 Avatar asked Jan 14 '23 22:01

user1961082


1 Answers

Capifony removes app_*.php files for security reasons. You shouldn't use them in production.

If you really need them, you can set the clear_controllers option to false:

set :clear_controllers, false
like image 191
Elnur Abdurrakhimov Avatar answered Jan 16 '23 22:01

Elnur Abdurrakhimov