<commit_before>#!/bin/sh

VAR_ENVDIR="/home/glokon/domains/dcm.li/root.dcm/env.root/"
VAR_PUBLISHDIR="/home/glokon/domains/dcm.li/root.dcm/app.root/"
VAR_VERSION_INFO="$BUILD_NUMBER-$GIT_BRANCH-$GIT_COMMIT"
VAR_GIT_BRANCH="master"

ssh -p 1995 glokon@172.16.58.3 <<EOF
  cd $VAR_PUBLISHDIR
  php artisan down
  git pull origin ${VAR_GIT_BRANCH}
  cp ${VAR_ENVDIR}.env.php $VAR_PUBLISHDIR
  touch -m ${VAR_PUBLISHDIR}app/.version
  find . -type d -exec chmod 755 {} \;
  find . -type f -exec chmod 644 {} \;
  cat /dev/null > ${VAR_PUBLISHDIR}app/.version
  echo $VAR_VERSION_INFO > ${VAR_PUBLISHDIR}app/.version
  composer install --no-dev --optimize-autoloader
  php artisan migrate --force
  php artisan up
  exit
EOF<commit_msg>Update deploy script<commit_after>#!/bin/sh

VAR_ENVDIR="/home/glokon/domains/dcm.li/root.dcm/env.root/"
VAR_PUBLISHDIR="/home/glokon/domains/dcm.li/root.dcm/app.root/source/"
VAR_VERSION_INFO="$BUILD_NUMBER-$GIT_BRANCH-$GIT_COMMIT"
VAR_GIT_BRANCH="master"

ssh -p 1995 glokon@172.16.58.3 <<EOF
  cd $VAR_PUBLISHDIR
  php artisan down
  git pull origin ${VAR_GIT_BRANCH}
  cp ${VAR_ENVDIR}.env.php $VAR_PUBLISHDIR
  touch -m ${VAR_PUBLISHDIR}app/.version
  find . -type d -exec chmod 755 {} \;
  find . -type f -exec chmod 644 {} \;
  cat /dev/null > ${VAR_PUBLISHDIR}app/.version
  echo $VAR_VERSION_INFO > ${VAR_PUBLISHDIR}app/.version
  composer install --no-dev --optimize-autoloader
  php artisan migrate --force
  php artisan up
  exit
EOF
{'fraction_non_alphanumeric': 0.14159891598915988, 'fraction_numerical': 0.024390243902439025, 'mean_word_length': 3.989864864864865, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4291786', 'n_tokens_mistral': 653, 'n_tokens_neox': 606, 'n_words': 113}