Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"