Tag Archives: symfony

Symfony assets management: assets:install

In your Symfony application there are bound to exist many assets (JS, CSS, and so on) either created by you or provided by third-party bundles.

As part of your deploy procedure, you usually have to use some Symfony console command to actually make the assets available to the frontend of your application.

Let’s start with the most basic solution: the assets:install command.

Continue reading Symfony assets management: assets:install

Install Symfony app in a subfolder of an existing site

The request was simple: one of my customer wanted to have a Symfony app available as a subfolder of an existing site, i.e.

http://www.example.com/myapp/

Googling for it, I found lots of tutorials but each one of them failed to meet two specific requirements:

  • I don’t want to edit the virtual host configuration
  • the application folders (“app”, “bin”, “src”, “vendor”) must be outside the site root

So here’s my solution, which only assumes that you have file access (i.e. FTP) at one level above your site root.

Continue reading Install Symfony app in a subfolder of an existing site