add dev_env_setup.sh
This commit is contained in:
parent
a5b7dfc60c
commit
63ea1be2c8
1 changed files with 19 additions and 0 deletions
19
dev_env_setup.sh
Normal file
19
dev_env_setup.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue