Skip to content

Commit

Permalink
Made run script retro compatible with previous tmux versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombusevil committed Nov 4, 2017
1 parent c8e73fa commit cc6b73f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions dependencies/sources/tmux.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -g mouse on
set -g remain-on-exit on
set -g set-remain-on-exit on
bind-key r respawn-pane -k
20 changes: 10 additions & 10 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# Relative paths (no need to modify)
BASE_PATH="$(pwd)/magma-playout/"
MELTED_PATH=$BASE_PATH"/core/melted/installation/"
MELTED_PATH=$BASE_PATH"core/melted/installation/"
MELTED_STATUS_PATH=$BASE_PATH"core/mp-melted-status/dist/"
CORE_API=$BASE_PATH"core/mp-core-api/"
CORE=$BASE_PATH"core/mp-core/dist/"
ADMIN_API=$BASE_PATH"store/mp-admin-api/"
PLAYOUT_API=$BASE_PATH"store/mp-playout-api/"
PLAYOUT_UI=$BASE_PATH"gui/mp-ui-playout/"
REDIS_PATH=$BASE_PATH"/core/redis/src"
REDIS_PATH=$BASE_PATH"core/redis/src/"

# Commands
MELTED_SERVER="./start-melted-server"
Expand All @@ -35,14 +35,14 @@ else
figlet "Magma Playout"
echo "Creating tmux session..."
tmux -f dependencies/sources/tmux.conf new -s magma -d
tmux new-window -n redis -t magma -c $REDIS_PATH $REDIS_SERVER
tmux new-window -n melted -t magma -c $MELTED_PATH $MELTED_SERVER
tmux new-window -n status -t magma -c $MELTED_STATUS_PATH $MELTED_STATUS
tmux new-window -n coreapi -t magma -c $CORE_API $NODE_SERVER
tmux new-window -n adminapi -t magma -c $ADMIN_API $NODE_SERVER
tmux new-window -n playoutapi -t magma -c $PLAYOUT_API $NODE_SERVER
tmux new-window -n core -t magma -c $CORE $JAVA_CORE
tmux new-window -n gui -t magma -c $PLAYOUT_UI $ANGULAR_SERVER
tmux new-window -n redis -t magma -c "$REDIS_PATH" "$REDIS_SERVER"
tmux new-window -n melted -t magma -c "$MELTED_PATH" "$MELTED_SERVER"
tmux new-window -n status -t magma -c "$MELTED_STATUS_PATH" "$MELTED_STATUS"
tmux new-window -n coreapi -t magma -c "$CORE_API" "$NODE_SERVER"
tmux new-window -n adminapi -t magma -c "$ADMIN_API" "$NODE_SERVER"
tmux new-window -n playoutapi -t magma -c "$PLAYOUT_API" "$NODE_SERVER"
tmux new-window -n core -t magma -c "$CORE" "$JAVA_CORE"
tmux new-window -n gui -t magma -c "$PLAYOUT_UI" "$ANGULAR_SERVER"
echo "Done! now run: "
echo " tmux attach-session -t magma"
echo " use (Ctrl+B)(r) shortcut to respawn a killed command"
Expand Down

0 comments on commit cc6b73f

Please sign in to comment.