<commit_before>#!/bin/sh

set -eu

# FIXME - this should be set by jenkins
export DEPLOY_TO=preview

SERVER="${DEPLOY_TO}-redirector"

SSH_CONFIG="-F ../alphagov-deployment/ssh_config"

# redirector site configurations
# scp -F ../ssh_config ./nginx_configs/*.conf "$SERVER":/etc/nginx/sites-available
scp $SSH_CONFIG ./dist/www.*.conf "$USER@$SERVER":/var/apps/redirector

ssh $SSH_CONFIG "$SERVER" sudo /etc/init.d/nginx reload<commit_msg>Adding a line to deploy.sh to also copy the redirections file to the appropriate directory - this may change<commit_after>#!/bin/sh

set -eu

# FIXME - this should be set by jenkins
export DEPLOY_TO=preview

SERVER="${DEPLOY_TO}-redirector"

SSH_CONFIG="-F ../alphagov-deployment/ssh_config"

# redirector site configurations
# scp -F ../ssh_config ./nginx_configs/*.conf "$SERVER":/etc/nginx/sites-available
scp $SSH_CONFIG ./dist/www.*.conf "$USER@$SERVER":/var/apps/redirector
scp $SSH_CONFIG ./nginx_configs/redirections "$USER@$SERVER":/var/apps/redirector

ssh $SSH_CONFIG "$SERVER" sudo /etc/init.d/nginx reload
{'fraction_non_alphanumeric': 0.14636449480642116, 'fraction_numerical': 0.0, 'mean_word_length': 4.72972972972973, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1000598', 'n_tokens_mistral': 399, 'n_tokens_neox': 375, 'n_words': 86}