laravel 开源Koel安装过程
开源项目
https://github.com/phanan/koel
介绍
Koel (also stylized as koel, with a lowercase k) is a simple web-based personal audio streaming service written in Vue on the client side and Laravel on the server side. Targeting web developers, Koel embraces some of the more modern web technologies – CSS grid, audio, and drag-and-drop API to name a few – to do its job.
类似网易云的一个播放器,前端基于vue , 后端基于laravel
https://koel.phanan.net/docs/#/
这里有安装手册,但是有一些前端插件的问题,导致初始化失败
php artisan koel:init
这是由于yarn install --colors 没有附带 --no-bin-links
因此在 InitCommand.php 里面修改指令
$runOkOrThrow("yarn install --colors --no-bin-links"); chdir("../.."); $this->info("└── Compiling assets"); $runOkOrThrow("yarn install --colors --no-bin-links"); $runOkOrThrow("yarn production --colors --no-bin-links");
再次执行php artisan koel:init