Skip to content

Commit d9ccad6

Browse files
committed
Fixed generating APP KEY with 'composer update'
1 parent 105e3e2 commit d9ccad6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "khashayarzavosh/littlelink-admin",
2+
"name": "julianprieber/littlelink-custom",
33
"type": "project",
4-
"description": "Littlelink admin is an admin panel for littlelink",
4+
"description": "LittleLink Custom is a highly customizable link sharing platform",
55
"keywords": ["link"],
66
"license": "GPL-3.0-or-later",
77
"require": {
@@ -44,9 +44,7 @@
4444
"post-root-package-install": [
4545
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
4646
],
47-
"post-create-project-cmd": [
48-
"@php artisan key:generate --ansi"
49-
]
47+
"post-update-cmd": ["echo.> storage/app/ISINSTALLED"]
5048
},
5149
"extra": {
5250
"laravel": {

routes/web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
|
1818
*/
1919

20+
// Prevents section below from being run by 'composer update'
21+
if(file_exists(base_path('storage/app/ISINSTALLED'))){
2022
// generates new APP KEY if no one is set
2123
if(EnvEditor::getKey('APP_KEY')==''){Artisan::call('key:generate');}
2224

2325
// copies template meta config if none is present
2426
if(!file_exists(base_path("config/advanced-config.php"))){copy(base_path('storage/templates/advanced-config.php'), base_path('config/advanced-config.php'));}
27+
}
2528

2629
//Changes the homepage to a LittleLink Custom profile if set in the config
2730
if(config('advanced-config.custom_home_url') != '') {

0 commit comments

Comments
 (0)