sass - Assetic dump uses same tmp folder for different Symfony2 projects -
i've next environment: 1 apache2 webserver on ubuntu machine 3 vhosts (one vhost per project). 3 project run on symfony2 (but differnt versions, 2.2 2.4). each of projects (and paths) have own user. i'm deploying projects capifony on server, each has own receipt.
sass version sass 3.2.14 (media mark)
imagine i'm deploying application 1 webserver. when deploymentprocess comes dumping production assets, writing temporary generated sass files next folder:
/tmp/600d657f6ac2358f30ba6bc0ab4cd7ffb6194ced
as user1.
if i'm deploying application 2 webserver, dumping assets write same folder, time user2 , next error occurs:
an error occurred while running: * [err :: 10.0.106.103] '/usr/bin/ruby' '/usr/local/bin/sass' '--load-path' '/srv/vhosts/myproject.com/releases/20140619124055/app/../web/sass' '--scss' '--cache-location' '/tmp' '/tmp/assetic_sassbsrcle' * [err :: 10.0.106.103] * [err :: 10.0.106.103] error output: errno::enoent: no such file or directory - /tmp/600d657f6ac2358f30ba6bc0ab4cd7ffb6194ced/assetic_sassbsrclec20140619-27927-aw8xrk.lock
my workaround is, remove /tmp/600d657f6ac2358f30ba6bc0ab4cd7ffb6194ced folder every time before deployment.
i didn't find pathconfiguration in capifony receipts nor in symfony2 config files in projects.
any help appreciated.
best, ramo
this has been referenced on official assetic repository as issue, well. since can set sys_get_temp_dir() via environment variable tmpdir (among others), recommend doing dump. base of operations off current unix time, or commit you're deploying, or combination of application, time, , intent. really, work. line responsible setting cache location is here, in case wanted fork assetic , alter that, quite doable well. suggest tmpdir route @ first confirm potential fix.
small edit, there this pull semi-address issue.
symfony2 sass assetic capifony
No comments:
Post a Comment