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
-## 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 -
-- 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.
-- 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 -
-## Website
-- Start the web server
-sh -python manage.py runserver 0.0.0.0:8000 -