I hereby claim:
- I am mlavin on github.
- I am mlavin (https://keybase.io/mlavin) on keybase.
- I have a public key whose fingerprint is 4215 FFB7 280C 8293 6C0B 9481 8F2A 2314 3123 FC13
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from django.db.backends.postgresql_psycopg2.base import * | |
def change_to_unlogged(statement): | |
"""Replace CREATE TABLE statements to be UNLOGGED.""" | |
return statement.replace('CREATE TABLE', 'CREATE UNLOGGED TABLE') | |
class DatabaseCreation(DatabaseCreation): | |
def create_test_db(self, verbosity, autoclobber): |
import ConfigParser | |
import os | |
from fabric.api import env, sudo | |
from fabric.contrib import files | |
SERVER_ROLES = ['dbmaster', 'app', 'lb', ] | |
env.roledefs = dict.fromkeys(SERVER_ROLES, []) | |
# Directory structure |
import os | |
import sys | |
from django.conf import settings | |
from django.db import connections, models, transaction, DEFAULT_DB_ALIAS | |
from django.db.models.signals import post_syncdb | |
from django.dispatch import receiver | |
from south.signals import post_migrate | |
# Postgres 9.0 and 9.1 along with PostGIS | |
ppa:pitti/postgresql | |
ppa:ubuntugis/ppa | |
ppa:pi-deb/gis | |
# rsyslogd that does not suffer from Ubuntu bug #407862 | |
ppa:evax/rsyslog | |
# Latest stable Nginx | |
ppa:nginx/stable | |
# Redis backport | |
ppa:rwky/redis |
Vagrant::Config.run do |config| | |
config.vm.define :"dbmaster" do |config| | |
config.vm.box = "lucid32" | |
config.vm.network("33.33.33.10") | |
config.vm.customize do |vm| | |
vm.memory_size = 256 | |
end | |
end | |
config.vm.define :"app1" do |config| | |
config.vm.box = "lucid32" |
#!/bin/bash -ex | |
export PIP_DOWNLOAD_CACHE=/tmp/.pip_download_cache | |
cd $WORKSPACE | |
virtualenv -q ve | |
source ./ve/bin/activate | |
pip install -E ./ve -r requirements/ci-apps.txt | |
cd $WORKSPACE/homebrew | |
ln -fs `pwd`/settings/ci.py `pwd`/settings/local.py | |
python manage.py jenkins |