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

Configuration

Zeyuan Shang edited this page Dec 10, 2015 · 8 revisions

Environments

  • 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.

Note that you need to add user vagrant to the group adm to get the permission for reading the log files of MySQL.

  • Configure Database Log Location Please configure the locations of log file in cmudbac/settings.py by modifying the variable LOG_FILE_LOCATION.

Google Analytics

Please change your Google Analytics in cmudbac/settings.py by modifying the variable GOOGLE_ANALYTICS_KEY.

Crawler and Deployer

Secrets

As we crawl and download repositories from GitHub, you are supposed to provide a GitHub account for a better use of GitHub API. Please make a new direcotry secrets and add a new secrets.json file in the directory as:

{
    'user': 'YOUR_GITHUB_USERNAME',
    'pass': 'YOUR_GITHUB_PASSWORD'
}
Repository Crawler
  • Start the repository crawler:
python scripts/crawl_repos.py
Repository Deployer
  • Start the repository deployer:
python deploy_repos.py
Clone this wiki locally