Skip to content

Commit

Permalink
Hotfixes 4 (#1006)
Browse files Browse the repository at this point in the history
* explicit intention about what to install the root project or not

* "whens" argument in case() is now passed as a series of positional arguments.

* added loguru for logging.

* also specify the FLASK_APP environment value in docker-compose.yml

* form_import requires a file-like object and not a
FileStorage object. This commit, resolves that issue.

* check if the request accepts json rather than use the deprecated .is_xhr

* updated Georgian translations.

* fix for pyxforms not parsing worksheets it doesn't expect.

* updated the serviceworker so translated views are updated.
  • Loading branch information
takinbo authored Oct 23, 2024
1 parent 4fe3f0b commit f3a90c1
Show file tree
Hide file tree
Showing 13 changed files with 639 additions and 741 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ COPY poetry.lock pyproject.toml $PYSETUP_PATH

# install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally
RUN --mount=type=cache,target=/root/.cache \
poetry install --without=dev
poetry install --no-root --without=dev

COPY . $PYSETUP_PATH

# this allows the installation of the dependencies to be cached separately
# from that of the project.
RUN --mount=type=cache,target=/root/.cache \
poetry install --without=dev
poetry install --only-root

RUN make babel-compile

Expand Down Expand Up @@ -100,7 +100,7 @@ WORKDIR $PYSETUP_PATH

# quicker install as runtime deps are already installed
RUN --mount=type=cache,target=/root/.cache \
poetry install --with=dev
poetry install --no-root --with=dev

CMD ["flask", "--app", "apollo.runner", "run", "--reload", "--debug", "--host", "[::]", "--port", "5000"]

Expand Down
Loading

0 comments on commit f3a90c1

Please sign in to comment.