This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
Zeyuan Shang edited this page Dec 2, 2015
·
19 revisions
Please install the following softwares:
- virtualbox
- python
- vagrant
- unzip
- pip
- Use pip to install the required python packages:
sudo pip install -r requirements.txt
- Set temperary pip user path:
export PYTHONUSERBASE="/tmp/pip"
-
Configure your vagrant file: Rename
vagrant/Vagrantfile_example
tovagrant/Vagrantfile
and modify the configurations if necessary. -
Start virtual machine:
vagrant up
If the host machine is using proxy, please edit the script bootstrap.sh and set http_proxy to the proxy that is to be used.
- Configure MySQL in Vagrant Please follow the steps in https://gist.github.com/demagu/578f61998fa0d4ea75d8.
-
Create an database with utf8 character set. (especially these columns need utf8: character set. repository.description, repository.homepage, attempt.log)
-
Rename
cmudbal/settings_example.py
tocmudbal/settings.py
, and set DATABASE configurations of this file according to your database. -
Migrate database and load initial data:
python manage.py migrate
python manage.py loaddata library/fixtures/*.json
- Start the web server
python manage.py runserver 0.0.0.0:8000