<commit_before>#!/bin/bash
# This script is not currently meant to be executed from within the repository.
# Copy or symlink it to some deployment directory.

set -ex

cd /var/www/dds

# Update mes-aides
git fetch origin
git rebase origin/master
npm install
grunt build

# Update openfisca
npm run install-openfisca
cat openfisca/api_config.ini | sed s/"port = 2000"/"port = 12000"/ > ~/production.ini

# Restart mes-aides
sudo restart dds

# Restart openfisca
sudo start openfisca || sudo restart openfisca

echo "Déploiement effectué"<commit_msg>Force a pure remote mirror<commit_after>#!/bin/bash
# This script is not currently meant to be executed from within the repository.
# Copy or symlink it to some deployment directory.

set -ex

cd /var/www/dds

# Update mes-aides
git fetch origin
git checkout --force --detach origin/master
git clean --force
npm install
grunt build

# Update openfisca
npm run install-openfisca
cat openfisca/api_config.ini | sed s/"port = 2000"/"port = 12000"/ > ~/production.ini

# Restart mes-aides
sudo restart dds

# Restart openfisca
sudo start openfisca || sudo restart openfisca

echo "Déploiement effectué"
{'fraction_non_alphanumeric': 0.08027923211169284, 'fraction_numerical': 0.015706806282722512, 'mean_word_length': 4.213636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1300861', 'n_tokens_mistral': 409, 'n_tokens_neox': 377, 'n_words': 140}