Skip to content

Commit

Permalink
Add run.sh to run both backend and frontend (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon authored May 19, 2023
1 parent b3ef9bf commit 8b81f0e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -eo pipefail

function run_frontend() {
cd frontend && yarn run dev
}

function run_backend() {
cd backend && ENVIRONMENT=DEVELOPMENT pipenv run gunicorn \
-k bracket.uvicorn.RestartableUvicornWorker \
bracket.app:app \
--bind localhost:8400 \
--workers 1 \
--reload
}

(trap 'kill 0' SIGINT;
run_frontend &
run_backend
)

1 comment on commit 8b81f0e

@vercel
Copy link

@vercel vercel bot commented on 8b81f0e May 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.