<commit_before>#!/bin/bash

set -e

cd /srv/staging/website
git pull
npm run build
npm run build-prod
sudo systemctl stop gunicorn_staging
sleep 5
sudo systemctl start gunicorn_staging<commit_msg>Add collectstatic to deploy script<commit_after>#!/bin/bash

set -e

ROOT_DIR=/srv/staging
DJANGODIR=$ROOT_DIR/website/

source $ROOT_DIR/venv/bin/activate
export $(cat .env.staging | xargs)

cd $DJANGODIR
git pull

npm run build
npm run build-prod

./manage.py collectstatic --clear --noinput \
    --ignore less/test/* --ignore select2/docs/*

sudo systemctl stop gunicorn_staging
sleep 5
sudo systemctl start gunicorn_staging
{'fraction_non_alphanumeric': 0.09134615384615384, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 4.387931034482759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2068453', 'n_tokens_mistral': 238, 'n_tokens_neox': 213, 'n_words': 65}