✨ 配置 workflows
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -24,8 +24,6 @@ jobs:
|
|||||||
run: php artisan key:generate
|
run: php artisan key:generate
|
||||||
- name: Directory Permissions
|
- name: Directory Permissions
|
||||||
run: chmod -R 777 storage bootstrap/cache
|
run: chmod -R 777 storage bootstrap/cache
|
||||||
- name: Delete symlinks
|
|
||||||
run: find public -lname '*' -delete
|
|
||||||
- name: Create Database
|
- name: Create Database
|
||||||
run: |
|
run: |
|
||||||
mkdir -p database
|
mkdir -p database
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Strategy extends Model
|
|||||||
$symlink = self::getRootPath($strategy->configs['url']);
|
$symlink = self::getRootPath($strategy->configs['url']);
|
||||||
$target = $strategy->configs['root'] ?: config('filesystems.disks.uploads.root');
|
$target = $strategy->configs['root'] ?: config('filesystems.disks.uploads.root');
|
||||||
if (! is_dir(public_path($symlink))) {
|
if (! is_dir(public_path($symlink))) {
|
||||||
(new Filesystem())->link($target, $symlink);
|
@(new Filesystem())->link($target, $symlink);
|
||||||
}
|
}
|
||||||
// 是否需要移除旧的符号链接
|
// 是否需要移除旧的符号链接
|
||||||
$url = $strategy->getOriginal('configs')['url'] ?? '';
|
$url = $strategy->getOriginal('configs')['url'] ?? '';
|
||||||
|
|||||||
Reference in New Issue
Block a user