Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Installation

Zeyuan Shang edited this page Nov 19, 2015 · 19 revisions

#CMDBAL - Carnegie Mellon Database Application Library

Install Requirements

Software

Please install the following softwares:

  • virtualbox
  • python
  • vagrant
  • unzip
  • pip
Python Packages
  • Use pip to install the required python packages:
sudo pip install -r requirements.txt)         

Environments

  • Set temperary pip user path:
export PYTHONUSERBASE="/tmp/pip"
  • Configure your vagrant file: Rename vagrant/Vagrantfile_example to vagrant/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.

Setup Database

  • 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 to cmudbal/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

Crawler and Deployer

Repository Crawler
  • Start the repository crawler:
python scripts/crawl_repos.py
Repository Deployer
  • Start the repository deployer:
python deploy_repos.py

Website

  • Start the web server
python manage.py runserver 0.0.0.0:8000                                         
Clone this wiki locally