Skip to content

Commit

Permalink
move static images into final location in docker
Browse files Browse the repository at this point in the history
we want all our static files in one place and not split over two folders
so add a final deployment step to move images and javascript to the
correct place
  • Loading branch information
struan committed Jan 24, 2022
1 parent 1afec2b commit 8bcedc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/server
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ if [ "$ACTION" == "--docker" ]; then
script/migrate
python3 manage.py collectstatic --noinput
mkdir -p static/css
mkdir -p static/img
mkdir -p static/js
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/js/* static/js/
cp -rf static/caps/img/* static/img/
cp -rf static/scoring/js/* static/js/
cp -rf static/scoring/img/* static/img/
gunicorn proj.wsgi:application --bind 0.0.0.0:8000 --worker-tmp-dir /dev/shm --log-file=- --access-logfile=-
else
script/migrate
Expand Down

0 comments on commit 8bcedc5

Please sign in to comment.