mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[PR #409] [CLOSED] Populate dotenv to config #1238
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/409
Author: @BernardGoldberger
Created: 8/17/2016
Status: ❌ Closed
Base:
master← Head:moveENVtoConfig📝 Commits (7)
1045eddmove env variables to config3e10fe8wrote some comments for koel config6631b02app key and jwt secret now use config4df7480Fix to 408c365400fix styleci and clean run function032007bmake styleci happy4e24e05Update SongController.php📊 Changes
12 files changed (+145 additions, -30 deletions)
View changed files
📝
app/Application.php(+1 -1)📝
app/Console/Commands/Init.php(+2 -2)📝
app/Http/Controllers/API/DataController.php(+1 -1)📝
app/Http/Controllers/API/SongController.php(+2 -2)📝
app/Http/Requests/API/Download/Request.php(+1 -1)📝
app/Http/Streamers/TranscodingStreamer.php(+1 -1)📝
app/Services/Lastfm.php(+3 -3)📝
app/Services/Media.php(+1 -1)📝
app/Services/YouTube.php(+2 -2)📝
config/jwt.php(+2 -6)➕
config/koel.php(+112 -0)📝
database/seeds/UserTableSeeder.php(+17 -10)📄 Description
I noticed that occasionally I would have an error
of course this make no sense since I have set the DB and password.
So I did some research and found 2 things
Here is a post https://github.com/vlucas/phpdotenv/issues/76#issuecomment-167806230 by @GrahamCampbell about this.
In this PR I created a separate config file
koel.phpfor all Koel specific configurations, and I also fix https://github.com/phanan/koel/issues/408.Going forward we can tell users to run
php artisan config:cacheonce they finnished setting up Koel, or we could even make part of thekoel:initcommand.Note
I think this might in fact be the actual issue with https://github.com/phanan/koel/issues/393.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.