Skip to content

Commit

Permalink
update deployment files for django 4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Apr 8, 2024
1 parent c1b8fc1 commit 10daf8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions script/make_static
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ cd "$(dirname $BASH_SOURCE)"/..

[ -f .venv/bin/activate ] && source .venv/bin/activate

python3 manage.py collectstatic --noinput
mkdir -p static/css
mkdir -p static/img
sassc --style compressed static/caps/scss/main.scss static/css/caps.css
sassc --style compressed static/scoring/scss/main.scss static/css/scoring.css
cp -rf static/caps/img/* static/img/
cp -rf static/scoring/img/* static/img/
poetry run ./manage.py collectstatic --noinput
2 changes: 1 addition & 1 deletion script/manage
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
[ -f "$(dirname $0)"/../.venv/bin/activate ] && . "$(dirname $0)"/../.venv/bin/activate

managepy="$(dirname "$0")/../manage.py"
python3 "$managepy" "$@"
poetry run "$managepy" "$@"
2 changes: 1 addition & 1 deletion script/update_venv
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ cd "$(dirname $BASH_SOURCE)"/..
source .venv/bin/activate

export PYTHONDONTWRITEBYTECODE=1
pip3 install --requirement requirements.txt
poetry install --no-interaction --no-root
find . -name '*.pyc' -delete

0 comments on commit 10daf8b

Please sign in to comment.