Update makefile and some commands
Some checks failed
linter / quality (push) Successful in 3m44s
tests / ci (push) Failing after 6m35s

This commit is contained in:
Javier Feliz 2025-08-04 19:00:29 -04:00
parent 0ed2cf6907
commit fa570b0ce3
4 changed files with 11 additions and 4 deletions

View File

@ -11,8 +11,15 @@ TEST_CONTAINER_NAME = authentikate-test
# Make sure to get set up with octane and frankenPHP # Make sure to get set up with octane and frankenPHP
# since that's what the base docker image expects # since that's what the base docker image expects
setup: ## Install Laravel Octane with FrankenPHP setup: ## Install Laravel Octane with FrankenPHP
composer install
npm install
composer require laravel/octane composer require laravel/octane
php artisan key:generate
php artisan octane:install --server=frankenphp php artisan octane:install --server=frankenphp
php artisan migrate:fresh
php artisan app:generate-keys
php artisan authentikate:create-admin --email="admin@admin.com" --name="Admin"
php artisan db:seed
# Docker build targets # Docker build targets
build: ## Build the Docker image build: ## Build the Docker image

View File

@ -36,7 +36,7 @@ class GenerateKeys extends Command
if (file_exists($privatePath) || file_exists($publicPath)) { if (file_exists($privatePath) || file_exists($publicPath)) {
$this->warn('Keys already exist. Aborting.'); $this->warn('Keys already exist. Aborting.');
return 1; Command::SUCCESS;
} }
$this->info("Generating RSA key pair..."); $this->info("Generating RSA key pair...");

View File

@ -21,8 +21,8 @@ class DatabaseSeeder extends Seeder
// 'password' => Hash::make('password') // 'password' => Hash::make('password')
// ]); // ]);
// // Create 8 sample applications // Create 8 sample applications
// Application::factory(8)->create(); Application::factory(8)->create();
// Create authentication tokens for testing // Create authentication tokens for testing
$this->call(AuthenticationTokenSeeder::class); $this->call(AuthenticationTokenSeeder::class);

View File

@ -1,2 +1,2 @@
php /app/artisan app:generate-keys php /app/artisan app:generate-keys
php /app/artisan authentikate:create-admin php /app/artisan authentikate:create-admin --email="admin@admin.com" --name="Admin"