Skip to content

Commit 776baa9

Browse files
Tau - fix booting on Linux and macOS and respect MIX_ENV variable
1 parent e89f9e6 commit 776baa9

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

app/server/erlang/tau/boot-lin.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e # Quit script on error
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
cd ${SCRIPT_DIR}
6+
7+
echo "Booting Sonic Pi on Linux..."
8+
9+
TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 exec _build/"${MIX_ENV:-dev}"/rel/tau/bin/tau start

app/server/erlang/tau/boot-mac.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cd ${SCRIPT_DIR}
66

77
echo "Booting Sonic Pi on macOS..."
88

9-
TAU_ENABLED=$0 TAU_INTERNAL=$1 TAU_MIDI_ENABLED=$2 TAU_LINK_ENABLED=$3 TAU_IN_PORT=$4 TAU_API_PORT=$5 TAU_SPIDER_PORT=$6 _build\dev\rel\tau\bin\tau start
9+
TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 exec _build/"${MIX_ENV:-dev}"/rel/tau/bin/tau start

app/server/erlang/tau/boot-win.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ set TAU_IN_PORT=%5%
1313
set TAU_API_PORT=%6%
1414
set TAU_SPIDER_PORT=%7%
1515

16-
_build\dev\rel\tau\bin\tau start
16+
IF NOT DEFINED MIX_ENV SET "MIX_ENV=dev"
17+
18+
_build\%MIX_ENV%\rel\tau\bin\tau start

app/server/erlang/tau/boot.lin.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)