cbmi/dev_env_setup.sh
2013-10-26 20:26:01 +02:00

21 lines
405 B
Bash

#!/bin/bash
set -e
virtualenv cbmi
cd cbmi
source bin/activate
git clone git@github.com/c-base/cbmi.git
cd src
pip install -r requirements.txt
cat <<EOF
Issue the following SQL statements on your devel MySQLd
CREATE DATABASE cbmi DEFAULT CHARACTER SET = utf8;
GRANT ALL PRIVILEGES ON cbmi.* TO cbmi@localhost IDENTIFIED BY 'cbmi';
Don't forget to run syncdb:
python manage.py syncdb
EOF