Production Deploy - mysociety/yournextrepresentative GitHub Wiki
If you're not using vagrant in production and you need to get all the pre-requisites installed for YourNextMP in a newly configured VPS, these are the commands you should run:
apt-get install postgresql postgresql-server-dev-9.4 libffi-dev python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver