Skip to content

Instantly share code, notes, and snippets.

@carlynorama
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlynorama/0dbb157b76ca7ea23f02 to your computer and use it in GitHub Desktop.
Save carlynorama/0dbb157b76ca7ea23f02 to your computer and use it in GitHub Desktop.
How to connect to the repo July 14 2014
#assumes Mac OS X 10.9 with Xcode Command line tools and FireFox installed
#install hombrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew doctor
#install python 3 in homebrew's path and get virtualenv for it
brew install python3 #includes pip3
pip3 install virtualenv
#------ MICHELLE START HERE ---------------#
#go make a palce to put everything
mkdir -p ~/$PATH/$SITENAME
#these we use later
mkdir -p ~/$PATH/$SITENAME/database #not in repo
mkdir -p ~/$PATH/$SITENAME/static #not in repo
mkdir -p ~/$PATH/$SITENAME/virtualenv #not in repo
#create the virtualenv
cd ~/$PATH/$SITENAME
virtualenv --python=python3 virtualenv #put the virtualenv in the dirvirtualenv
source virtualenv/bin/activate
#get the repo and put it in a directory called source
git clone $REMOTE_REPO #https://github.com/mleonhart/CRASHLACMA.git source
#confirm you have the branch you are looking for. If not, get it.
cd source
git remote -v #should show you that that now there is a remote repo called origin
git branch #shows branches
git fetch origin django_init:django_init #where django_init is the branch other than Master you want to get.
#switch to django_init
git checkout django_init
#get the requirements installed (Django and Selenium only at the moment)
pip install -r requirements.txt
#create a new banch to work in
git branch $YOUR_NEW_BRANCH_NAME
git checkout $YOUR_NEW_BRANCH_NAME
#run the branch BEFORE making any changes.
python manage.py migrate
python manage.py runserver
#much later, when you're ready
#git push origin $YOUR_NEW_BRANCH_NAME #sends your branch back to repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment