In the end, the problem was not in the folder used in the configuration. Both /srv/www/code/web
and /app/www/web
work the same (as they should, considering that /app/www
is an alias of /srv/www/www
which is an alias of /srv/www/code
, as well explained by @TooAngel).
The problem was with the assetic:dump
command, which for some reason, needs to be called during the build process.
I've added this to the composer.json
file, and now it works:
{
...
"scripts": {
"post-install-cmd": [
"php app/console cache:clear --env=prod",
"php app/console assets:install --env=prod",
"php app/console assetic:dump --env=prod"
],
...
},
...
}