1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Merge pull request #28 from ductilestudios/tweak-initial-build

Add docker services to build steps
This commit is contained in:
Josh Pigford 2024-01-11 09:28:27 -06:00 committed by GitHub
commit 7562f139d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -32,6 +32,7 @@ You'll need Docker installed to run the app locally.
```
cp .env.example .env
yarn install
yarn run dev:services
yarn prisma:migrate:dev
yarn prisma:seed
yarn dev
@ -81,6 +82,12 @@ yarn install # re-run if it hangs
yarn dev
```
#### Start Postgres & Redis Services
```
yarn run dev:services
```
#### Migrate DB
In a separate terminal, run the following command. This will connect to the Postgres DB running inside Docker and run all the migrations in `/prisma/migrations`.

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"dev": "nx run-many --target serve --projects=client,advisor,server,workers --parallel --host 0.0.0.0 --nx-bail=true --maxParallel=100",
"dev:services": "COMPOSE_PROFILES=services docker-compose up",
"dev:services": "COMPOSE_PROFILES=services docker-compose up -d",
"dev:services:all": "COMPOSE_PROFILES=services,ngrok,stripe docker-compose up",
"dev:workers:test": "nx test workers --skip-nx-cache --runInBand",
"dev:server:test": "nx test server --skip-nx-cache --runInBand",