<commit_before>#!/bin/sh
 
# This script is run by Supervisor to start UWSGI in foreground mode

# Create the socket directory, if it doesn't already exist.
 
if [ ! -e /var/run/uwsgi ]; then
    sudo install -d -m 755 -o uwsgi /var/run/uwsgi
fi

exec /usr/local/opt/python/bin/uwsgi \
        --enable-threads \
        --master-fifo /tmp/uwsgififo \
        --lazy-apps \
        --hook-post-fork="chdir:/data/deploy/current" \
        /data/deploy/current/uwsgi.ini<commit_msg>move uwsgi config settings that are likely to vary per ENV out of app repo<commit_after>#!/bin/sh
 
# This script is run by Supervisor to start UWSGI in foreground mode

# Create the socket directory, if it doesn't already exist.
 
if [ ! -e /var/run/uwsgi ]; then
    sudo install -d -m 755 -o uwsgi /var/run/uwsgi
fi

exec /usr/local/opt/python/bin/uwsgi \
        --enable-threads \
        --master-fifo /tmp/uwsgififo \
        --workers=${UWSGI_WORKERS} \
        --max-requests=${UWSGI_MAX_REQUESTS} \
        --lazy-apps \
        --hook-post-fork="chdir:/data/deploy/current" \
        /data/deploy/current/uwsgi.ini
{'fraction_non_alphanumeric': 0.12941176470588237, 'fraction_numerical': 0.005429864253393665, 'mean_word_length': 2.2529411764705882, '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': '1346895', 'n_tokens_mistral': 412, 'n_tokens_neox': 387, 'n_words': 101}