我正在研究 Symfony2。pq 有人知道我的网站没有正确使用资产吗?
$ kernel = new AppKernel ('prod', false);
当我将网站上传到 Web 服务器时,我正在处理 app.php,但我看到了资产。我试图这样做:
assets: installl - symlink web
assets: install web
安装但还是一样。
我也尝试清除缓存但无法正常工作。
aradasymfony@ssh:~/www/pfc$ app/console assets:install web
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for mio\mioBundle into web/bundles/miomio
Installing assets for FOS\JsRoutingBundle into web/bundles/fosjsrouting
Installing assets for Acme\DemoBundle into web/bundles/acmedemo
Installing assets for Symfony\Bundle\WebProfilerBundle into web/bundles/webprofiler
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
paradasymfony@ssh:~/www/pfc$ app/console --env=prod cache:clear
Clearing the cache for the prod environment with debug true
网站: http: //paradasymfony.alwaysdata.net/pfc/web/login
谢谢。