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 4, 2024
1 parent f5eb429 commit a054065
Show file tree
Hide file tree
Showing 3 changed files with 4 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 manage.py collectstatic --noinput
2 changes: 1 addition & 1 deletion script/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -e
# check that we are in the expected directory
cd `dirname $0`/..

"$(dirname "$0")/manage" migrate
poetry "$(dirname "$0")/manage" migrate
3 changes: 2 additions & 1 deletion script/update_venv
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ cd "$(dirname $BASH_SOURCE)"/..
source .venv/bin/activate

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

0 comments on commit a054065

Please sign in to comment.