generated from thegrind/laravel-dockerized
Update makefile and some commands
This commit is contained in:
parent
0ed2cf6907
commit
fa570b0ce3
7
Makefile
7
Makefile
@ -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
|
||||||
|
@ -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...");
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user