Skip to content

Commit

Permalink
5000->8000
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Sep 25, 2024
1 parent 80e1149 commit 8a24d2b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ LABEL org.hotosm.tasks.app-version="${APP_VERSION}" \
org.hotosm.tasks.python-img-tag="${PYTHON_IMG_TAG}" \
org.hotosm.tasks.dockerfile-version="${DOCKERFILE_VERSION}" \
org.hotosm.tasks.maintainer="${MAINTAINER}" \
org.hotosm.tasks.api-port="5000"
org.hotosm.tasks.api-port="8000"
# Fix timezone (do not change - see issue #3638)
ENV TZ UTC
# Add non-root user, permissions, init log dir
Expand Down Expand Up @@ -147,7 +147,7 @@ RUN apt-get update && \
# Pre-compile packages to .pyc (init speed gains)
RUN python -c "import compileall; compileall.compile_path(maxlevels=10, quiet=1)"
RUN python -m compileall .
EXPOSE 5000/tcp
EXPOSE 8000/tcp
USER appuser:appuser
CMD ["gunicorn", "-c", "python:backend.gunicorn", "manage:application", \
"--workers", "1", "--log-level", "error"]
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EnvironmentConfig:
)

# The base url the application is reachable
APP_BASE_URL = os.getenv("TM_APP_BASE_URL", "http://127.0.0.1:5000/").rstrip("/")
APP_BASE_URL = os.getenv("TM_APP_BASE_URL", "http://127.0.0.1:8000/").rstrip("/")

API_VERSION = os.getenv("TM_APP_API_VERSION", "v2")
ORG_CODE = os.getenv("TM_ORG_CODE", "HOT")
Expand Down
2 changes: 1 addition & 1 deletion backend/services/mapping_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def generate_gpx(project_id: int, task_ids_str: str, timestamp=None):
"""
Creates a GPX file for supplied tasks. Timestamp is for unit testing only.
You can use the following URL to test locally:
http://www.openstreetmap.org/edit?editor=id&#map=11/31.50362930069913/34.628906243797054&comment=CHANGSET_COMMENT&gpx=http://localhost:5000/api/v2/projects/{project_id}/tasks/queries/gpx%3Ftasks=2
http://www.openstreetmap.org/edit?editor=id&#map=11/31.50362930069913/34.628906243797054&comment=CHANGSET_COMMENT&gpx=http://localhost:8000/api/v2/projects/{project_id}/tasks/queries/gpx%3Ftasks=2
"""

if timestamp is None:
Expand Down
4 changes: 2 additions & 2 deletions docs/developers/development-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ docker compose up -d
If you are looking to deploy only Frontend service with docker, You will need to make sure the following env vars are corrent in `tasking-manager.env`

```
TM_APP_API_URL=http://127.0.0.1:5000
TM_APP_API_URL=http://127.0.0.1:8000
```
This refers to the backend service that you are going to consume, If you don't have a Tasking Manager backend instance you can use the staging server hosted by hotosm.
```
Expand Down Expand Up @@ -361,7 +361,7 @@ pdm run flask run --debug --reload
```
You can access the API documentation on
[http://localhost:5000/api-docs](http://localhost:5000/api-docs), it
[http://localhost:8000/api-docs](http://localhost:8000/api-docs), it
also allows you to execute requests on your local TM instance. The API
docs is also available on our
[production](https://tasks.hotosm.org/api-docs) and
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/submit-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ production server.
* Are changes made to the frontend? Walk through them logged in and
logged out (if possible).
* Are changes made to the API? Check you can poll it at
`http://localhost:5000/api-docs` if you have Tasking Manager running
`http://localhost:8000/api-docs` if you have Tasking Manager running
in a docker container.
* Do changes touch messaging? Try logging in with two separate
accounts in two browsers (e.g. one open with private browsing) and
Expand Down

0 comments on commit 8a24d2b

Please sign in to comment.