Skip to content

Commit

Permalink
Fix ./run.sh dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Feb 4, 2025
1 parent c1c75db commit 2a1a4e0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ ENV=${1:-prod}

case $ENV in
"dev")
source .env # load env variables into environment

# install frontend dependencies, run frontend in dev mode, in background
cd frontend
bun i # install frontend dependencies
bun run dev & # run frontend in dev mode, in background
bun i
bun run --env-file=../.env dev &

# install backend dependencies, run backend in dev mode
cd ../backend
uv sync # install backend dependencies
fastapi dev # run backend in dev mode
uv run --env-file=../.env fastapi dev
;;
"prod")
docker-compose -f $REVIEWIIITH_DIR/docker-compose.yml -p reviewiiith up --build
Expand Down

0 comments on commit 2a1a4e0

Please sign in to comment.