配置 workflows

This commit is contained in:
Wisp X 2022-03-06 21:01:26 +08:00
parent a63527c086
commit 4ea2f28fd4
2 changed files with 1 additions and 3 deletions

View File

@ -24,8 +24,6 @@ jobs:
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Delete symlinks
run: find public -lname '*' -delete
- name: Create Database
run: |
mkdir -p database

View File

@ -66,7 +66,7 @@ class Strategy extends Model
$symlink = self::getRootPath($strategy->configs['url']);
$target = $strategy->configs['root'] ?: config('filesystems.disks.uploads.root');
if (! is_dir(public_path($symlink))) {
(new Filesystem())->link($target, $symlink);
@(new Filesystem())->link($target, $symlink);
}
// 是否需要移除旧的符号链接
$url = $strategy->getOriginal('configs')['url'] ?? '';