Skip to content

Commit

Permalink
Merge pull request #70 from jolicode/update
Browse files Browse the repository at this point in the history
Update docker infrastructure and dependencies
  • Loading branch information
pyrech authored Nov 21, 2024
2 parents 3fee74d + 280262d commit 50ba2a8
Show file tree
Hide file tree
Showing 35 changed files with 2,917 additions and 1,873 deletions.
15 changes: 15 additions & 0 deletions .castor/database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

use Castor\Attribute\AsTask;

use function Castor\context;
use function Castor\io;
use function docker\docker_compose;

#[AsTask(description: 'Connect to the PostgreSQL database', name: 'db:client', aliases: ['postgres', 'pg'])]
function postgres_client(): void
{
io()->title('Connecting to the PostgreSQL database');

docker_compose(['exec', 'postgres', 'psql', '-U', 'app', 'app'], context()->toInteractive());
}
Loading

0 comments on commit 50ba2a8

Please sign in to comment.