Linux, WebDev and other…

Deploy symfony app on shared hosting

Simple list of steps, which I have done to get symfony app working on a shared hosting.

  1. Prepare database using phpmyadmin or other tool
  2. Delete cache
  3. If using assetic, generate assets on localhost:
  4. Check database parameters (by default in app/config/parameters.yml)
  5. Upload files using FTP (omit app/cache/dev and app/cache/prod)
  6. Rename web to required public directory (probably public_html)
  7. Check if symlinked directories in public_html/bundles are working. If not, copy them manually
  8. Check in html source, that assets file name matches generated files on localhost. If not, then rename.
  9. Should work.

Leave a Reply

Your email address will not be published. Required fields are marked *