mirror of
https://github.com/koel/koel
synced 2024-11-23 20:53:05 +00:00
fix: .htaccess customizations get overwritten with updates (#1762)
This commit is contained in:
parent
e2838f3c9e
commit
44345753fa
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
Header always set Access-Control-Allow-Origin "*"
|
Header always set Access-Control-Allow-Origin "*"
|
||||||
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"
|
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"
|
|
@ -78,7 +78,8 @@
|
||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
"@php artisan clear-compiled",
|
"@php artisan clear-compiled",
|
||||||
"@php artisan cache:clear",
|
"@php artisan cache:clear",
|
||||||
"@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\""
|
"@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\"",
|
||||||
|
"@php -r \"if (!file_exists('./public/.htaccess')) copy('.htaccess.example', './public/.htaccess');\""
|
||||||
],
|
],
|
||||||
"pre-update-cmd": [
|
"pre-update-cmd": [
|
||||||
"@php artisan clear-compiled"
|
"@php artisan clear-compiled"
|
||||||
|
|
Loading…
Reference in a new issue