generate database connection info for VM for #178
authorBryan <btbonval@gmail.com>
Wed, 4 Dec 2013 01:08:29 +0000 (20:08 -0500)
committerBryan <btbonval@gmail.com>
Wed, 4 Dec 2013 01:08:29 +0000 (20:08 -0500)
Vagrantfile

index 676f7f6c034cc15a1c5bd6b5ce398fecce038bf9..cb720d731b4c713e3a26abc47cce50da695d1639 100644 (file)
@@ -32,6 +32,20 @@ usermod -a -G www-data vagrant
 
 su vagrant -c "git clone /vagrant karmaworld"
 
+CFILE="karmaworld/karmaworld/secret/db_settings.py"
+echo > $CFILE <<CONFIG
+#!/usr/bin/env python
+# -*- coding:utf8 -*-
+# Copyright (C) 2012  FinalsClub Foundation
+"""
+DO NOT check this file into source control.
+"""
+PROD_DB_NAME = 'karmaworld'
+PROD_DB_USERNAME = 'vagrant'
+PROD_DB_PASSWORD = ''
+CONFIG
+chown vagrant:vagrant $CFILE
+
 pip install fabric
 #su vagrant -c "cd karmaworld; fab here first_deploy"
 SCRIPT