cbmi/dev_env_setup.sh

24 lines
449 B
Bash
Raw Normal View History

2013-10-19 01:09:56 +02:00
#!/bin/bash
2013-10-19 01:38:50 +02:00
set -e
2013-10-19 01:09:56 +02:00
virtualenv cbmi
cd cbmi
source bin/activate
2013-10-26 20:30:42 +02:00
git clone git@github.com:c-base/cbmi.git src
2013-10-19 01:09:56 +02:00
cd src
git submodule init
git submodule update
2013-10-19 01:09:56 +02:00
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