<commit_before>#!/bin/bash -e

echo `date` "Starting SSHD"
/usr/sbin/sshd -e

echo `date` "Starting MongoDB"
/usr/bin/mongod --config /etc/mongod.conf --fork --smallfiles --nojournal

# Test for and execute a hook script (to be past by docker images layered
# on top of this image.
if [ -x /start-image-hook.sh ]
then
  echo `date` "Running start-image-hook"
  . /start-image-hook.sh
fi

echo `date` "Starting MEAN.IO Appserver"
su - mean -c "cd appserver && grunt cssmin && grunt uglify && NODE_ENV=production forever -w server.js ${HOOKARGS}"<commit_msg>changed args so we can pass --singleProcess to node exec options, separate from MEAN args<commit_after>#!/bin/bash -e

echo `date` "Starting SSHD"
/usr/sbin/sshd -e

echo `date` "Starting MongoDB"
/usr/bin/mongod --config /etc/mongod.conf --fork --smallfiles --nojournal

# Test for and execute a hook script (to be past by docker images layered
# on top of this image.
if [ -x /start-image-hook.sh ]
then
  echo `date` "Running start-image-hook"
  . /start-image-hook.sh
fi

echo `date` "Starting MEAN.IO Appserver"
su - mean -c "cd appserver && grunt cssmin && grunt uglify && NODE_ENV=production forever -w -c 'node ${NODEARGS}' server.js ${MEANARGS}"
{'fraction_non_alphanumeric': 0.1347107438016529, 'fraction_numerical': 0.0, 'mean_word_length': 3.6045627376425857, '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': '726247', 'n_tokens_mistral': 441, 'n_tokens_neox': 418, 'n_words': 148}