Skip to content

Commit

Permalink
update deploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmvfb committed Aug 11, 2023
1 parent 899d7b8 commit 6cf635c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COPY . /app/

RUN pip install poetry
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
RUN python3 manage.py collectstatic --noinput

EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ install:
poetry build
poetry install
poetry shell
python3 manage.py collectstatic --noinput

# performing checks, formatting and lint
selfcheck:
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ Further steps depend on the platform:
**Linux/WSL:**
```
$ make install
# apply migrations and configure static files
# apply migrations
$ python3 manage.py migrate
$ python3 manage.py collectstatic --noinput
# run to start dev server
$ make dev
```
Expand All @@ -53,7 +52,6 @@ Run `deactivate` to exit virtual environment.
```
docker compose build
docker compose run web python3 manage.py migrate
docker compose run web python3 manage.py collectstatic --noinput
docker compose up
```

Expand Down

0 comments on commit 6cf635c

Please sign in to comment.