我正在使用.gitlab-ci.yml安装composer composer install。
安装已成功完成,并显示以下消息:
Package manifest generated successfully.但我得到了以下错误:
Method Composer\Config::disableProcessTimeout is not callable, can
not call post-install-cmd script
>ln -sr storage/app/public public/storage
ln: failed to create symbolic link 'public/storage/public': File
exists
Script ln -sr storage/app/public public/storage handling the post-
install-cmd event returned with error code 1
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit status 1我该如何修复它呢?
谢谢
发布于 2020-05-11 22:30:40
如果目标目录或文件已经存在,则无法创建Linux symlink。这就是你的错误信息。
如果您计划链接storage/app/public目录,则需要在将任何文件(例如构建文件)添加到该目录之前执行此操作。
以前在使用git这样的版本控制软件时,有一件事让我感到困惑,那就是有时你可能想要在生产环境中symlink的目录被意外地提交到了存储库中。
现在,您可能需要重命名目标目录并重新运行命令。然后将重命名目录的内容复制到/storage/app/public/目录中
https://stackoverflow.com/questions/61729308
复制相似问题