我使用网络云托管和我的项目在Yii2高级框架,当我上传它,在vendor/yiisoft/yii2/web/AssetManager.php中删除自动。当我请求托管时,他们说您的文件有符号链接!
怎么才能修好呢?
发布于 2017-04-13 18:07:45
您的.gitignore或.gitexclude中可能有“资产”。然后,部署将不包括任何被忽略的文件,如app/assets,但也不包括AssetManager.php。
发布于 2016-07-27 12:53:05
根据http://www.yiiframework.com/doc-2.0/guide-structure-assets.html#asset-publishing中的文档,您可能已经使用符号链接设置了资产发布。
可以在config/main.php中设置配置
return [
// ...
'components' => [
'assetManager' => [
'linkAssets' => true,
],
],
];https://stackoverflow.com/questions/35289952
复制相似问题