<commit_before>#!/bin/bash
set -e
echo "Updating checkout"
git pull

echo "Updating static files"
export DJANGO_SETTINGS_MODULE=rippl.prod_settings
python rippl/manage.py collectstatic --noinput
rsync -avz static/ <EMAIL>:~/rippl/static/

if [ -f rippl-gunicorn.pid ]; then
  echo "Stopping running server"
  kill `cat rippl-gunicorn.pid`
fi
bash start_prod.sh<commit_msg>Add dependency install to update script<commit_after>#!/bin/bash
set -e
echo "Updating checkout"
git pull

echo "Installing deps"
source /home/rippl/venvs/rippl/bin/activate # TODO: make this less snowflake
pip install -r prod-requirements.txt
# TODO: install npm so we can build frontend
# npm install
# brunch build

echo "Updating static files"
source PROD_ENV.sh
export DJANGO_SETTINGS_MODULE=rippl.prod_settings
python rippl/manage.py collectstatic --noinput
rsync -avz static/ <EMAIL>:~/rippl/static/

PIDFILE="rippl/gunicorn.pid"
if [ -f "$PIDFILE" ]; then
  echo "Stopping running server"
  kill `cat "$PIDFILE"`
fi
bash start_prod.sh
{'fraction_non_alphanumeric': 0.10355029585798817, 'fraction_numerical': 0.0, 'mean_word_length': 4.901162790697675, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5166716', 'n_tokens_mistral': 367, 'n_tokens_neox': 347, 'n_words': 105}