<commit_before>#!/bin/bash
echo "building angular and copying into public"
BRANCH=production-$(date +%Y%m%d)
git checkout master
git checkout -b $BRANCH # should be new branch each time
cd lineman
bower install
lineman build
cd ..
cp -R lineman/dist/* public/
git add public/img public/css/app.css public/js/app.js public/js/vendor.js public/fonts
git commit -m "production build commit"
git push loomio-production $BRANCH:master -f
rm -r public/img public/css public/js
git checkout master
git branch -D $BRANCH
heroku run rake db:migrate -a loomio-production <commit_msg>restart after migration in deploy script<commit_after>#!/bin/bash
echo "building angular and copying into public"
BRANCH=production-$(date +%Y%m%d)
git checkout master
git checkout -b $BRANCH # should be new branch each time
cd lineman
bower install
lineman build
cd ..
cp -R lineman/dist/* public/
git add public/img public/css/app.css public/js/app.js public/js/vendor.js public/fonts
git commit -m "production build commit"
git push loomio-production $BRANCH:master -f
rm -r public/img public/css public/js
git checkout master
git branch -D $BRANCH
heroku run rake db:migrate -a loomio-production
heroku restart -a loomio-production
{'fraction_non_alphanumeric': 0.09271523178807947, 'fraction_numerical': 0.0, 'mean_word_length': 4.571428571428571, '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': '6105414', 'n_tokens_mistral': 402, 'n_tokens_neox': 389, 'n_words': 149}