When the container is upgraded based on Rancher, when the Yii2 advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist analysis and solution
1. When the advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist, as shown in Figure 1
2. Enter the directory in the container: /mcloud/www/channel-pub-api/frontend/web, and determine the directory: /assets does not exist, as shown in Figure 2
3. Analyze the source code, and you can determine the directory: /frontend/web/assets exist, as shown in Figure 3
4. The reason is finally analyzed, directory: /mcloud/www/channel-pub-api/frontend/web It has been mapped to the storage mounted on the container, not the directory where the source code is located: /frontend/web, so an error is reported to delete the mount on the storage, as shown in Figure 4
/webtv/wangjiedev/channel-pub-api/frontend/web:/mcloud/www/channel-pub-api/frontend/web
5. Upgrade again, the initialization is successful, as shown in Figure 5




