Skip to content

Commit

Permalink
Use make targets for pip package install and devserver
Browse files Browse the repository at this point in the history
  • Loading branch information
lovett committed Jan 9, 2017
1 parent 7921404 commit f431c91
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -28,11 +28,14 @@ venv: dummy
rm -rf venv
virtualenv -p python3 --no-site-packages --prompt="♪ ♪ ♪" venv

pip: dummy
pip install --upgrade pip
setup: dummy
pip install --upgrade pip setuptools
pip install -r requirements.txt
pip install -r requirements-dev.txt

serve: dummy
python medley.py


# Create the coverage directory
$(COVERAGE_DIR):
Expand Down
7 changes: 3 additions & 4 deletions README.org
Expand Up @@ -7,11 +7,10 @@ well as virtualenv and make. Then:
git clone git@github.com:lovett/medley.git
cd medley
make venv
source bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
source venv/bin/activate
make setup
cp medley.conf.example medley.conf
python medley.py
make serve
#+end_src

* Testing
Expand Down
5 changes: 3 additions & 2 deletions workspace.sh
Expand Up @@ -15,13 +15,14 @@ tmux attach-session -d -t "$PROJECT_NAME" || {

## 0: Editor
tmux new-session -d -s "$PROJECT_NAME" bash
tmux send-keys -t "$PROJECT_NAME" "e ." C-m
tmux send-keys -t "$PROJECT_NAME" "$EDITOR ." C-m

## 1: Shell
tmux new-window -a -t "$PROJECT_NAME" bash
tmux send-keys -t "$PROJECT_NAME" "source venv/bin/activate" C-m

## 2: Dev server
tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "source venv/bin/activate; python medley.py"
tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "source venv/bin/activate; make serve"

tmux select-window -t "$PROJECT_NAME":0

Expand Down

0 comments on commit f431c91

Please sign in to comment.