Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmdlt committed Nov 24, 2023
1 parent ad73bd8 commit aae3fbb
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
PORT=3000

install:
poetry install

dev:
poetry run flask --app app.server run --debug -h 0.0.0.0 -p 3000
poetry run flask --app app.server run --debug -h 0.0.0.0 -p $(PORT)

run:
poetry run gunicorn -w 4 -b 0.0.0.0:3000 app.server:app
poetry run gunicorn -w 4 -b 0.0.0.0:$(PORT) app.server:app

start:
make stop rm || true
docker run -p 3000:3000 data-charts-api make run
docker run -p $(PORT):$(PORT) data-charts-api make run

build:
docker build . -t data-charts-api
docker build . --tag=data-charts-api

stop:
docker stop data-charts-api
Expand Down
Loading

0 comments on commit aae3fbb

Please sign in to comment.