gre*_*emo 5 symfony assetic symfony-2.3
我的服务器是运行CentOS x64的自定义虚拟服务器,node已安装并正常运行.资产配置:
assetic:
use_controller: false
node: /usr/bin/node
filters:
less:
node_paths: [/usr/lib/node_modules/]
Run Code Online (Sandbox Code Playgroud)
当我使用较少的过滤器访问任何页面时,我收到以下错误(CSS生成的文件的内容):
exception] 500 | Internal Server Error | Symfony\Component\Process\Exception\RuntimeException
[message] The process has been signaled with signal "11".
[1] Symfony\Component\Process\Exception\RuntimeException: The process has been signaled with signal "11".
at n/a
in /var/www/vhosts/mydomain.it/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 318
at Symfony\Component\Process\Process->wait()
in /var/www/vhosts/mydomain.it/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 197
at Symfony\Component\Process\Process->run()
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php line 149
at Assetic\Filter\LessFilter->filterLoad(object(FileAsset))
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Filter/FilterCollection.php line 62
at Assetic\Filter\FilterCollection->filterLoad(object(FileAsset))
in /var/www/vhosts/mydomain.it/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php line 90
at Assetic\Asset\BaseAsset->doLoad('@vendor-dir: "../../../../../vendor";
Run Code Online (Sandbox Code Playgroud)
但是,使用php app/console assetic:dump --env=dev正常工作的方式倾销资产.非常感谢任何帮助,谢谢.
编辑:我在这里开了一个问题.
Cha*_*zin -2
您可能想要:
app/console assetic:dump以详细模式 ( )执行app/console assetic:dump -vvv以检查您在构建资产时实际上没有任何错误。为什么?因为有时 assetic 无法正确清除您的缓存。当您处于控制台模式时,assetic 还倾向于通过透明地失败来隐藏错误。
| 归档时间: |
|
| 查看次数: |
1556 次 |
| 最近记录: |