deployment - How to deploy my Symfony2 project into ftp -



deployment - How to deploy my Symfony2 project into ftp -

i searched , tried couple of tutorials on net none of them worked me well. tutorials followed symfony2 documentation, dator, hpatoio , capifony.

can explain me how can export project server. e.g. www.domain.com/about. helpful me.

i have bundle , within bundles controller , twig templates etc set.

if have questions please ask.

thanks in advance.

first off should noted deploying symfony2 app on ftp really bad. makes couple of steps more hard (or impossible) , should avoided. if have ssh access machine @ list of alternative deployment methods below.

preparation

there few things cannot influence when deploy on ftp. if have no command on next or can not configure them correctly unfortunately have no chance of deploying shared hosting.

the php configuration. if settings not set correctly , have no chance of changing them unfortunately lost. any php module may require. same above. if can not install additional modules need there no chance you. (an illustration php5-intl module any symfony <2.6) correct folder permissions. app/cache , app/logs. check docs requirements. the webserver configuration. symfony needs correctly configured webserver (in cases apache or nginx) function correctly. if can not influence config bad well. might want seek define rewrite rules in .htaccess file as described here. deployment

here steps need follow prepare application deployment for first time:

update / install vendors. utilize composer install (or composer update) install 3rd party bundle or library utilize in project since have no alternative install them later straight on server. if utilize assetic asset management, create sure install these php app/console assetic:dump --env=prod command. dump other assets so: php app/console assets:install --env=prod. (this step might not required need create sure assets not symlinked. check blog post if using symfony >=2.6) clear cache production: php app/console cache:clear --env=prod make sure edit parameters.yml fit needs of production server. also update database schema on production database in case have changed during development.

now should go. re-create whole folder onto server , seek out.

for future

if deploy sec time create sure not override user info (e.g. uploaded images). need clear cache on ftp. empty app/cache directory.

alternative deployment methods

in case have more access server check out of these. might fit needs improve old pure ftp. maybe give reason plenty alter more appropriate server. capifony 1 of best deployment tools symfony2 apps. deployment easy running cap deploy on local machine. rest magic ;) simple git possible deployment. many of above steps still apply have advantages git gives not copying every time deploy. list of tools can found in docs.

symfony2 deployment ftp bundles

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -