<commit_before>#!/bin/bash

# Runs the production server. Should be ran as a daemon.
# Args:
#   $1: name of pidfile

# Bail on errors
set -e

cd /home/rmc

# Start the uwsgi server
# TODO(david): Benchmark with ab and use worker processes if necessary
uwsgi \
  --socket /tmp/uwsgi.sock \
  --chmod-socket 666 \
  --env FLASK_CONFIG=/home/rmc/rmc/config/flask_prod.py \
  --wsgi rmc.server.server:app \
  --master \
  --daemonize /home/rmc/logs/uwsgi.log \
  --uid rmc \
  --pidfile $1
<commit_msg>omg more fixes to prod server. sorry, i should jsut hotfix<commit_after>#!/bin/bash

# Runs the production server. Should be ran as a daemon.
# Args:
#   $1: name of pidfile

# Bail on errors
set -e

cd /home/rmc

# Start the uwsgi server
# TODO(david): Benchmark with ab and use worker processes if necessary
uwsgi \
  --socket /tmp/uwsgi.sock \
  --env FLASK_CONFIG=/home/rmc/rmc/config/flask_prod.py \
  --wsgi rmc.server.server:app \
  --master \
  --daemonize /home/rmc/logs/uwsgi.log \
  --uid rmc \
  --pidfile $1

{'fraction_non_alphanumeric': 0.13137254901960785, 'fraction_numerical': 0.006862745098039216, 'mean_word_length': 2.6859205776173285, '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': '3547311', 'n_tokens_mistral': 413, 'n_tokens_neox': 400, 'n_words': 114}