
'debug' => env('APP_DEBUG', false),
putenv("{$key}={$value}");
$_ENV[$key] = $value;
// 主题素材CDN
'theme-asset-cdn' => [
'driver' => 's3',
'key' => env('THEME_ASSET_CDN_AWS_ACCESS_KEY_ID'),
'secret' => env('THEME_ASSET_CDN_AWS_SECRET_ACCESS_KEY'),
'region' => env('THEME_ASSET_CDN_AWS_DEFAULT_REGION', 'us-east-2'),
'bucket' => env('THEME_ASSET_CDN_BUCKET', 'object-theme-assets'),
'root' => env('THEME_ASSET_CDN_ASSET_PREFIX', 'static/xxx/'),
],
$newConfig = [
'theme.view_storage' => $json['VIEW_STORAGE'] ?? config('theme.view_storage'),
];
config($newConfig);

$key = 'THEME_ASSET_CDN_BUCKET';
$value = 'object-theme-assets00';
putenv("{$key}={$value}");
$_ENV[$key] = $value;
config(['theme.view_storage' => 'ss']);
$loadConfiguration = new LoadConfiguration();
$loadConfiguration->bootstrap(app());
Log::debug(
'theme.v2.tenant.manager.1',
[
'env.THEME_ASSET_CDN_BUCKET' => env('THEME_ASSET_CDN_BUCKET'),
'theme.view_storage' => config('theme.view_storage') ?? null,
'theme_asset.versioning' => config('theme_asset.versioning') ?? null,
'theme_asset.cdn_url' => config('theme_asset.cdn_url') ?? null,
'theme_asset.filesystem.disk' => config('theme_asset.filesystem.disk') ?? null,
'filesystems.disks.theme-asset-cdn' => config('filesystems.disks.theme-asset-cdn') ?? null,
]
);
[2023-03-21 18:08:56] local.DEBUG: theme.v2.tenant.manager.1 {
"env.THEME_ASSET_CDN_BUCKET": "object-theme-assets00",
"theme.view_storage": "database",
"theme_asset.versioning": null,
"theme_asset.cdn_url": null,
"theme_asset.filesystem.disk": null,
"filesystems.disks.theme-asset-cdn": {
"driver": "s3",
"key": "111111111111",
"secret": "22222222222",
"region": "us-east-2",
"bucket": "object-theme-assets00",
"root": "static/xxx/"
}
}
PHP / Laravel / Yii2 老项目维护与长期技术支持
如果你的 PHP / Laravel / Yii2 项目已经上线,但遇到原开发离职、Bug 长期无人修复、接口不稳定、性能下降、代码难以接手等问题,可以联系我做一次远程技术排查。
适合以下情况:
✅ 老旧 PHP 系统无人维护
✅ Laravel / Yii2 项目 Bug 修复
✅ 后台管理系统小功能迭代
✅ RESTful API 接口排查
✅ MySQL / Redis / Nginx 性能问题
✅ 长期远程兼职维护
可先从一次小问题开始:
✅ 线上报错排查
✅ 接口异常分析
✅ 慢查询与性能瓶颈定位
✅ 代码结构初步评估
✅ 部署环境与日志检查
如需咨询,请联系我,并注明:PHP 维护咨询。
联系方式:
Telegram:@shuijingwan
微信:13980074657
邮箱:shuijingwanwq@gmail.com

发表回复