Skip to content

Commit

Permalink
Modify README to work with OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
hfaran committed Nov 4, 2015
1 parent 3c7c483 commit 53294b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
```bash
./install.bash
src/cutthroats.py
# Visit localhost:8888
# Visit localhost:9700
```

## Running with ``supervisord``
Expand Down
22 changes: 14 additions & 8 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,26 @@ DATADIR="/var/lib/cutthroat"
ORIGUSER="$USER"


read -p "Make sure you're in a Python virtualenv if you want to be before continuing... ^C now to quit if necessary, or press ENTER to continue."


# Install any system packages (Ubuntu/Debian only) that are pre-requisites
echo -e "\n\nInstalling required system packages . . ."
sudo apt-get install gcc build-essential python-dev
sudo apt-get install python-setuptools
sudo apt-get install libffi-dev # For python bcrypt package
# Install pip if required
if ! which pip; then
sudo easy_install-2.7 pip
if uname -a | grep "Debian\|Ubuntu"
then
echo -e "\n\nInstalling required system packages . . ."
sudo apt-get install gcc build-essential python-dev
sudo apt-get install python-setuptools
sudo apt-get install libffi-dev # For python bcrypt package
# Install pip if required
if ! which pip; then
sudo easy_install-2.7 pip
fi
fi


# Install all required Python packages
echo -e "\n\nInstalled required Python packages with pip . . ."
sudo pip install -r requirements.txt
pip install -r requirements.txt

# Create log directory and give $USER access to the folder
sudo mkdir -p $LOGDIR
Expand Down

0 comments on commit 53294b8

Please sign in to comment.