Symfony2: access same route in production as development -
Symfony2: access same route in production as development -
i'm developing little application using symfony2. can access routes no problems in dev environment:
http://symfony/app_dev.php/cp ("symfony" in hosts file resolve localhost)
however, seek , access in production environment, 404 error page:
http://symfony/app.php/cp
oops! error occurred server returned "404 not found". broken. please e-mail @ [email] , allow know doing when error occurred. prepare possible. sorry inconvenience caused.
is there need change/do before can view application in production? i've not messed of core files (kernel/bootstrap/app files, etc). i'm using release candidate 3.
as crozin mentioned in comment, have rebuild cache able see changes. need rebuild production cache every time alter in config, routing or templates. safest way using php app/console cache:clear --env=prod --no-debug
(as cli runs in dev mode debugging enabled default).
symfony2 production-environment production dev-to-production
Comments
Post a Comment