#!/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
uwsgi \
  --socket /tmp/uwsgi.sock \
  --chmod-socket 666 \
  --env FLASK_CONFIG=/home/rmc/rmc/config/flask_prod.py \
  --wsgi rmc.server.server:app \
  --master \
  --workers 4 \
  --daemonize /home/rmc/logs/uwsgi.log \
  --pidfile $1


#!/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
uwsgi \
  --socket /tmp/uwsgi.sock \
  --chmod-socket 666 \
  --env FLASK_CONFIG=/home/rmc/rmc/config/flask_prod.py \
  --wsgi rmc.server.server:app \
  --master \
  --workers 4 \
  --daemonize /home/rmc/logs/uwsgi.log \
  --buffer-size 32768 \
  --pidfile $1


Increase uwsgi buffer size to fix overflow issue
Increase uwsgi buffer size to fix overflow issue

The issue was:
http://comments.gmane.org/gmane.comp.python.wsgi.uwsgi.general/1171.
It was happening when during the POST request to '/login' when I click
the 'Connect with Facebook' button.
