From 934dfddcb32a3bc22bf474ef6c1fd336d1fe0bd3 Mon Sep 17 00:00:00 2001 From: Boudewijn Date: Mon, 3 Mar 2025 15:32:58 +0100 Subject: [PATCH] token generation works, tinker call works, but directly afterwards rollback. Change order of artisan calls in install to pinpoint cause of roll back --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index e8a5e3f..de21e63 100755 --- a/scripts/install +++ b/scripts/install @@ -102,12 +102,11 @@ pushd "$install_dir" "php$php_version" artisan key:generate -n --force --env "php$php_version" artisan make:database $app "php$php_version" artisan migrate:fresh --seed -n --force - "php$php_version" artisan config:clear -n - "php$php_version" artisan config:cache -n #"php$php_version" artisan app:create-user "$user" "$email" "$password" # Alternative method: direct injection of credentials using Artisan Tinker: echo "use App\Models\User; User::create(['name' => '$user', 'email' => '$email' , 'password' => bcrypt ('$password'), 'api_token' => '$token']); " | php artisan tinker - + "php$php_version" artisan config:clear -n + "php$php_version" artisan config:cache -n popd