Skip to content

Commit

Permalink
Replace standalone workspace script with equivalent Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
lovett committed Dec 30, 2018
1 parent 1515fc9 commit c744da5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
16 changes: 16 additions & 0 deletions Makefile
Expand Up @@ -35,6 +35,7 @@ REQUIREMENTS_TEMP := $(CURDIR)/temp-requirements.txt
PIP_OUTDATED_TEMP := temp-pip-outdated.txt

SHARED_JS_DIR := $(CURDIR)/apps/shared/static/js
TMUX_SESSION_NAME := medley

# Debugging tool to print the value of a variable.
#
Expand Down Expand Up @@ -309,3 +310,18 @@ master-to-production: dummy
git merge master
git push
git checkout master

workspace:
# 0: Editor
tmux new-session -d -s "$(TMUX_SESSION_NAME)" bash
tmux send-keys -t "$(TMUX_SESSION_NAME)" "$(EDITOR) ." C-m

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

# 2: Dev server
tmux new-window -a -t "$(TMUX_SESSION_NAME)" -n "devserver" "source venv/bin/activate; make serve"

tmux select-window -t "$(TMUX_SESSION_NAME)":0
tmux attach-session -t "$(TMUX_SESSION_NAME)"
30 changes: 0 additions & 30 deletions workspace.sh

This file was deleted.

0 comments on commit c744da5

Please sign in to comment.