Initial commit

This commit is contained in:
Pantheon 2025-04-02 15:57:39 -04:00
commit a9734dc4a5
49 changed files with 2790 additions and 0 deletions

19
.scripts/db.ts Normal file
View file

@ -0,0 +1,19 @@
import { exec } from 'child_process';
import { promisify } from 'util';
const appName = Bun.env.APP_NAME;
const execCommand = promisify(exec);
const command = `docker compose -p ${appName} -f devops/docker-compose.dev.yml up -d && docker compose -p ${appName} -f devops/docker-compose.dev.yml -f devops/docker-compose.wait.yml run --rm wait -c "${appName}-database:5432"`;
try {
const { stdout, stderr } = await execCommand(command, { env: Bun.env });
if (stderr) {
console.error(stderr);
}
console.log(stdout);
process.exit(0);
} catch (error) {
console.error(error);
process.exit(1);
}