Permalink
Browse files

Manually delay launch of the dev server

A manual delay prevents the dev server from crashing because the build
that's happening in another workspace hasn't finished yet.
  • Loading branch information...
lovett committed Sep 12, 2018
1 parent 87f4e55 commit 9ed4b677b36eb9ff9b627e7844085edda59fb86c
Showing with 1 addition and 1 deletion.
  1. +1 −1 workspace.sh
@@ -35,7 +35,7 @@ tmux attach-session -d -t "$PROJECT_NAME" || {
tmux new-window -a -t "$PROJECT_NAME" -n "livereload" "node_modules/.bin/livereload build/public -p 35740 -d -u 1"

## 6: Dev server
tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "node_modules/.bin/nodemon --signal SIGHUP server"
tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "sleep 5; node_modules/.bin/nodemon --signal SIGHUP server"

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

0 comments on commit 9ed4b67

Please sign in to comment.