Skip to content

Instantly share code, notes, and snippets.

@jordelver
Last active April 8, 2018 02:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jordelver/6b436fb90f42d17bf7ce to your computer and use it in GitHub Desktop.
Save jordelver/6b436fb90f42d17bf7ce to your computer and use it in GitHub Desktop.
How to install RestfulGit locally

How to install RestfulGit locally

This works on my Mac, YMMV :-/

Install

Clone the repo

git clone git@github.com:hulu/restfulgit.git

Install pip

curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py

Install dependencies

sudo pip install cffi

brew install libgit2

sudo pip install -r requirements.txt

Configuration

cp example_config.py config.py

Edit config.py and set the RESTFULGIT_REPO_BASE_PATH to wherever your Git repos reside.

Run the app

PYTHONPATH=<path/to/restfulgit> RESTFULGIT_CONFIG=<path/to/restfulgit/config.py> python <path/to/restfulgit>/app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment