Skip to content

Commit

Permalink
Merge pull request #2 from Mr-Sunglasses/main
Browse files Browse the repository at this point in the history
fix: CI
  • Loading branch information
Mr-Sunglasses authored Dec 10, 2023
2 parents f6dbb59 + 8aa90b3 commit 7fe3718
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- name: Delete Old docker container
run: sudo docker rm -f pastepyprod || true
- name: Run Docker Container
run: sudo docker run -d -p 8000:8000 --name pastepyprod mrsunglasses/paste.py
run: sudo docker run -d -p 8080:8080 --name pastepyprod mrsunglasses/paste.py
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ WORKDIR /project

RUN pdm install

EXPOSE 8000
CMD ["pdm", "run", "start"]
EXPOSE 8080
CMD ["pdm", "run", "start"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ license = {text = "MIT"}


[tool.pdm.scripts]
start = "uvicorn src.paste.main:app --host 0.0.0.0 --workers 4"
start = "uvicorn src.paste.main:app --host 0.0.0.0 --port 8080 --workers 4"

0 comments on commit 7fe3718

Please sign in to comment.