<commit_before>#!/bin/bash

# Variables

DEPLOY_DIR="trash"
SERVICE_NAME=""

# Find deploy target and service name
case $1 in

beta)
  DEPLOY_DIR="dev.api.fuelrats.com"
  SERVICE_NAME="fr-api_dev"
  ;;


master)
  DEPLOY_DIR="api.fuelrats.com"
  SERVICE_NAME="fr-api"
  ;;


*)
  echo "Current branch is not configured for auto-deploy. skipping deployment..."
  exit 1
  ;;
esac

# Move built project files to server
rsync -r --delete-after ./ <EMAIL>:/var/www/$DEPLOY_DIR/

# restart service
ssh -t <EMAIL> "sudo systemctl restart $SERVICE_NAME.service"<commit_msg>rsync dist instead of the root dir<commit_after>#!/bin/bash

# Variables

DEPLOY_DIR="trash"
SERVICE_NAME=""

# Find deploy target and service name
case $1 in

beta)
  DEPLOY_DIR="dev.api.fuelrats.com"
  SERVICE_NAME="fr-api_dev"
  ;;


master)
  DEPLOY_DIR="api.fuelrats.com"
  SERVICE_NAME="fr-api"
  ;;


*)
  echo "Current branch is not configured for auto-deploy. skipping deployment..."
  exit 1
  ;;
esac

# Move built project files to server
rsync -r --delete-after ./dist/ <EMAIL>:/var/www/$DEPLOY_DIR/

# restart service
ssh -t <EMAIL> "sudo systemctl restart $SERVICE_NAME.service"
{'fraction_non_alphanumeric': 0.1303972366148532, 'fraction_numerical': 0.0034542314335060447, 'mean_word_length': 3.952991452991453, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3691953', 'n_tokens_mistral': 464, 'n_tokens_neox': 429, 'n_words': 108}