mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
first commit
This commit is contained in:
commit
e7f627801f
152 changed files with 35352 additions and 0 deletions
8
scripts/dev_clean_db.sh
Normal file
8
scripts/dev_clean_db.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
cd '../src-backend'
|
||||
redis-cli flushall || echo "Redis Cache could not be flushed"
|
||||
find . -path "./*/migrations/*.py" -not -name "__init__.py" -delete
|
||||
find . -path "./data/db_migrations/*" -delete
|
||||
find /opt/miniconda3/envs/pydev/ -path "*/site-packages/migrations/*.py" -not -name "__init__.py" -delete
|
||||
find /opt/miniconda3/envs/pydev/ -path "*/site-packages/django/contrib/*/migrations/*.py" -not -name "__init__.py" -delete
|
||||
find . | grep -E "(__pycache__|\.pyc|\.pyo|\.sqlite3)" | xargs rm -rf
|
||||
Loading…
Add table
Add a link
Reference in a new issue