<commit_before>#!/bin/bash

set -o errexit
set -o pipefail

export APP_DIR=/var/www/stats.bower.io
export APP_NAME=stats.bower.io
export APP_REDIS=redis-bower
export APP_PM2=scripts/processes.json

if [[ "$HOSTNAME" = "shan.io" ]]; then
  export NODE_ENV=prod

  printf "[INFO] redis for $APP_NAME node app starting...\n"
  sudo start $APP_REDIS

  printf "[INFO] $APP_NAME node app starting...\n"
  pm2 restart $APP_NAME

else
  source ./scripts/dev.sh
  export NODE_ENV=dev
  export APP_PORT=3000
  export APP_GA_KEY_PATH=~/=Projects=/2f798d5414685a52456c31158c9fa61fa14256c3-privatekey.pem
  redis-server ./scripts/redis.conf
  node-dev index.coffee
fi
<commit_msg>[chore] tweaked env var in start script, test push<commit_after>#!/bin/bash

set -o errexit
set -o pipefail

#export APP_DIR=/var/www/stats.bower.io
export APP_NAME=stats.bower.io
export APP_REDIS=redis-bower
export APP_PM2=scripts/processes.json

if [[ "$HOSTNAME" = "shan.io" ]]; then
#  export NODE_ENV=prod

  printf "[INFO] redis for $APP_NAME node app starting...\n"
  sudo start $APP_REDIS

  printf "[INFO] $APP_NAME node app starting...\n"
  pm2 restart $APP_NAME

else
  source ./scripts/dev.sh
  export NODE_ENV=dev
  export APP_PORT=3000
  export APP_GA_KEY_PATH=~/=Projects=/2f798d5414685a52456c31158c9fa61fa14256c3-privatekey.pem
  redis-server ./scripts/redis.conf
  node-dev index.coffee
fi

{'fraction_non_alphanumeric': 0.11563636363636363, 'fraction_numerical': 0.05236363636363636, 'mean_word_length': 4.35408560311284, 'pattern_counts': {'":': 0, '<': 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': '7414052', 'n_tokens_mistral': 604, 'n_tokens_neox': 532, 'n_words': 118}