feat: add devcontainer

This commit is contained in:
Mythie
2023-09-09 04:38:37 +00:00
parent 9e4f1dfe1e
commit 0f3db459cb
3 changed files with 42 additions and 1 deletions

21
.devcontainer/on-create.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Start the database and mailserver
docker compose -f ./docker/compose-without-app.yml up -d
# Install dependencies
npm install
# Copy the env file
cp .env.example .env
# Source the env file, export the variables
set -a
source .env
set +a
# Run the migrations
npm run -w @documenso/prisma prisma:migrate-dev
# Start the app
npm run dev