mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
The media storage migration commands read/parsed the .env file directly to
check and flip PF_ENABLE_CLOUD. In containerized deploys there is no .env on
disk (config is injected via env vars), so updateEnvFile() threw
'file_get_contents(.env): Failed to open stream' and the scheduled command
exited 1.
- Check the live setting via config_cache('pixelfed.cloud_storage') like the
rest of the app, instead of parsing .env.
- Make the .env write best-effort in ManagesMediaStorageEnv: skip gracefully
when the file is missing or read-only, and still apply the runtime + DB
config-cache updates (the load-bearing changes on a hot server).
- Apply the same fix to the sibling unstable:MediaMoveStorageCloudToLocal.
- Add a regression test covering the no-.env container scenario.
|
3 weeks ago | |
|---|---|---|
| .. | ||
| FixPostCountsTest.php | 4 weeks ago | |
| FollowTest.php | 4 weeks ago | |
| MediaMoveStorageCloudToCloudTest.php | 3 weeks ago | |
| MediaMoveStorageTest.php | 3 weeks ago | |
| MigrateLocalS3MediaUrlTest.php | 4 weeks ago | |
| MuteBlockTest.php | 4 weeks ago | |
| PrivacyTest.php | 4 weeks ago | |
| ProfileCountReconcileTest.php | 4 weeks ago | |
| ReportTest.php | 4 weeks ago | |