Skip to content

Commit 7ef2283

Browse files
committed
collect static files on server
1 parent 27ecae7 commit 7ef2283

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ After starting the containers, apply database migrations:
4343
# run migrations, in the directory where docker-compose is to resolve the name "web"
4444
docker compose run app python manage.py makemigrations # should not detect and changes, otherwise your local config might be outdated
4545
docker compose run app python manage.py migrate
46+
docker compose run app python manage.py collectstatic --noinput
4647
docker compose run app python manage.py loaddata fixtures/test_data.json
4748
```
4849

docker-compose.deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
DATABASE_URL: postgis://optimap:optimap@db:5432/optimap?sslmode=disable
2323
OPTIMAP_DEBUG: "False"
2424
volumes:
25-
- ".:/code:ro"
25+
- ".:/code" # need to run collectstatic
2626
- "./fixtures:/fixtures"
2727
ports:
2828
- "8000:8000"

0 commit comments

Comments
 (0)