php - Deploy Symfony2 settings -
i have been following symfony2 deployment tutorial have run problems. http://bordenia.wordpress.com/2012/04/14/deploying-your-symfony-2-0-web-app-to-the-production-server/
i trying set /web/app.php root folder. works fine www.example.com/web not www.example.com like.
i have uploaded files public_html folder on server. /home/user/public_html/app example. should in separate folder project.
/home/user/public_html/project/app?
i understand app.php file held in public_html/web have tried create symlink folder on server flags this
fatal error: uncaught exception 'invalidargumentexception' message 'the file "/home/user/public_html/app/config/routing_prod.yml" not exist.
so doesn't seem work because in order move rooting files. mean need update them new routing somewhere?
as other config files have.
i have set parameters.yml correctly cos can send contact form , access database alright www.example.com/web?!
the code have in routing_prod.yml this:
_main: resource: routing.yml
the tutorial said copy had in _dev.yml , move _prod.yml file.
in routing.yml have this
x_portfolio: resource: "@xportfoliobundle/resources/config/routing.yml" prefix: /
any thoughts appreciated...
you need upload symfony2 application folder upper public_html. folder /home/user/ folder "web" rename public_html (or create symlink). please notice during generate assets need specify correct path of public folder (not "web" public_html).
Comments
Post a Comment