mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-05 10:27:39 +08:00
✨ 配置 workflows
This commit is contained in:
parent
a63527c086
commit
4ea2f28fd4
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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
|
||||
|
@ -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'] ?? '';
|
||||
|
Loading…
Reference in New Issue
Block a user