mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #831] composer install and koel:init fails when following the installation instructions #576
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#576
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?
Originally created by @ElectronicWar on GitHub (Oct 16, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/831
System: koel/master
96a3361, Debian 9Following the official installation instructions (both the simplified one on https://koel.phanan.net/#install and the more detailed one on https://koel.phanan.net/docs/#/) will lead to a fail of
composer installas well asphp artisan koel:initWhen no
.envfile was created, the error will beWhen
.envwas created from.env.example, the error will beThis error should be suppressed during the composer step.
The
.env.examplefile reads# A random 32-char string. You can leave this empty if use php artisan koel:init.but this is not true, as koel:init will only abort with "No application encryption key has been specified.".Currently it's required to manually set a 32char string for APP_KEY and JWT_SECRET to finish installation.
composer installwill run this at the very end, which it will never reach due to the error in the artisan step:@php -r "if (!file_exists('.env')) copy('.env.example', '.env');", so it's pretty much a chicken-egg-problemThis might be obvious for someone experience with artisan/laravel but the instructions should at least point to information that .env configuration is required before running composer.
@phanan commented on GitHub (Oct 16, 2018):
I'm confused. Are you on
masterbranch or a release tag?@ElectronicWar commented on GitHub (Oct 16, 2018):
I am on the latest commit in master, not on a release tag. (
git clone https://github.com/phanan/koelas by website instructions). I also wanted to be on master as latest release tag is many commits behind.@phanan commented on GitHub (Oct 16, 2018):
So does the problem happen to you if you really follow the instructions then?
@ElectronicWar commented on GitHub (Oct 16, 2018):
The main website instructions do not work if followed.
Checking out a release tag works (when using nodejs 8.x instead of 10.x), but not master (which happens when using the main website instructions)