Follow the following instructions:
- Check out source code
- Create a virtual Python environment for dependencies
- Install dependencies
- Download dataset
- Setup auto deploy
git clone git://github.com/Ramblurr/CapstonePython.git
This provides a simple and effective way to manage python dependencies across platforms.
Install virtualenv: If you are on linux you can install it via your package manager.
on Ubuntu/Debian:
aptitude install python-virtualenv
on OpenSuse:
zypper install python-virtualenv
otherwise install it with easy_install:
easy_install -U virtualenv
easy_install -U pip
on windows you should be able to follow the above commands, but check this site for more info:
Now let's create a new virtual environment, and begin using it:
virtualenv capstone
source capstone/bin/activate
Now let's install all of the dependencies:
pip install -U -r requirements.txt
Because the dataset(s) are huge and static they shouldn't be in source control. So, you'll have to download them to your machine manually. git is set to ignore them once they are downladed.
Download the dataset:
cd data/
./download_data.sh
And you're done!
On windows, crack open the script and do what it does by hand.
Add the following to ~/.ssh/config
Host capstone
User ubuntu
Hostname ec2-50-16-70-228.compute-1.amazonaws.com
IdentityFile /home/ramblurr/.ec2/pk-<yourname>-cassandra.pem
In the git directory run the following:
git remote add deploy git+ssh://capstone.com/home/ubuntu/CapstonePython
Now when ever you want to update the live website run:
git push deploy master