Skip to content

Commit

Permalink
Merge pull request #4485 from GeotrekCE/add_dev_flush_in_makefile
Browse files Browse the repository at this point in the history
Add clean and flush make command to init data in development mode
  • Loading branch information
submarcos authored Feb 5, 2025
2 parents fd72966 + 485498f commit 72c03c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,18 @@ load_demo:
load_test_integration:
$(docker_compose) run web ./manage.py loaddata test-integration

css:
for f in `find geotrek/ -name '*.scss'`; do node-sass --output-style=expanded $$f -o `dirname $$f`; done
clean_data:
$(docker_compose) down -v --remove-orphans
rm -rf var/cache/*
rm -rf var/tiles/*
rm -rf var/media/*
rm -rf var/static/*
rm -rf var/tmp/*
rm -rf var/log/*
rm -rf var/mobile/*


flush: clean_data update load_data

%.pdf:
mkdir -p docs/data-model
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ CHANGELOG
- Fix path pcture in intervention form (#4450)
- Fix gpx and kml parsing: geom is an empty GeometryCollection after invalid MultiLineString merge

**Development**

- Add clean and flush make command to init data in development mode


2.113.0 (2025-01-30)
----------------------------
Expand Down

0 comments on commit 72c03c6

Please sign in to comment.