Skip to content

Commit

Permalink
edit make dev command
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome authored and dmijatovic committed Apr 3, 2023
1 parent 8e772ec commit 79893e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ yarn-error.log*

# typescript
*.tsbuildinfo
.history
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ install: clean
clean:
docker-compose down --volumes


dev:
docker-compose up --scale scrapers=0 -d
make -j 2 dev-docs dev-frontend # Run concurrently

stop:
docker-compose down

Expand All @@ -73,7 +68,10 @@ frontend/.env.local: .env
sed -i 's/POSTGREST_URL=http:\/\/backend:3500/POSTGREST_URL=http:\/\/localhost\/api\/v1/g' frontend/.env.local
sed -i 's/RSD_AUTH_URL=http:\/\/auth:7000/RSD_AUTH_URL=http:\/\/localhost\/auth/g' frontend/.env.local

dev-frontend: frontend/.env.local
dev: frontend/.env.local
docker-compose build # build all services
docker-compose up --scale data-generation=1 --scale scrapers=0 --scale frontend=0 -d
# open http://localhost:3000 to see the application running
cd frontend && yarn dev

# run end-to-end test locally
Expand Down

0 comments on commit 79893e0

Please sign in to comment.