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 Dec 2, 2015 · 19 revisions

-## Install Requirements
-##### Software -Please install the following softwares:
-* virtualbox -* python -* vagrant -* unzip -* pip

-##### Python Packages -- Use pip to install the required python packages: -sh -sudo pip install -r requirements.txt -

-## Environments

-- Set temperary pip user path: -sh -export PYTHONUSERBASE="/tmp/pip" -

-- Configure your vagrant file: -Rename vagrant/Vagrantfile_example to vagrant/Vagrantfile and modify the configurations if necessary.

-- Start virtual machine: -sh -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.

-## 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: -sh -python manage.py migrate -python manage.py loaddata library/fixtures/*.json -

-## Crawler and Deployer

-##### Repository Crawler
-- Start the repository crawler: -sh -python scripts/crawl_repos.py -

-##### Repository Deployer
-- Start the repository deployer: -sh -python deploy_repos.py -

-## Website
-- Start the web server -sh -python manage.py runserver 0.0.0.0:8000 -

Clone this wiki locally