cbmi/dev_env_setup.sh

20 lines
403 B
Bash
Raw Normal View History

2013-10-19 01:09:56 +02:00
#!/bin/bash
virtualenv cbmi
cd cbmi
source bin/activate
git clone git@dev.c-base.org:cbmi/cbmi.git src
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