Skip to content

Commit 102525f

Browse files
committed
Tau - start in prod mode by default
You can still set the environment variable MIX_ENV to change this to another mode
1 parent 40d1d67 commit 102525f

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

app/linux-prebuild.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ PATH=`pkg-config --variable bindir Qt5`:$PATH lrelease "${SCRIPT_DIR}"/gui/qt/la
4747

4848
echo "Compiling Erlang files..."
4949
cd "${SCRIPT_DIR}/server/erlang/tau"
50-
mix local.hex --force
51-
mix deps.get
52-
mix release --overwrite
50+
MIX_ENV="${MIX_ENV:-prod}" mix local.hex --force
51+
MIX_ENV="${MIX_ENV:-prod}" mix deps.get
52+
MIX_ENV="${MIX_ENV:-prod}" mix release --overwrite
5353

5454
cp src/tau.app.src ebin/tau.app
5555
cd "${SCRIPT_DIR}"

app/mac-prebuild.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ PATH=$PATH:/usr/local/opt/qt@5/bin lrelease "${SCRIPT_DIR}"/gui/qt/lang/*.ts
8484

8585
echo "Compiling Erlang/Elixir files..."
8686
cd "${SCRIPT_DIR}/server/erlang/tau"
87-
mix local.hex --force
88-
mix deps.get
89-
mix release --overwrite
87+
MIX_ENV="${MIX_ENV:-prod}" mix local.hex --force
88+
MIX_ENV="${MIX_ENV:-prod}" mix deps.get
89+
MIX_ENV="${MIX_ENV:-prod}" mix release --overwrite
9090

9191
cp src/tau.app.src ebin/tau.app
9292
cd "${SCRIPT_DIR}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -e # Quit script on error
33
SCRIPT_DIR="$(dirname "$0")"
44
cd ${SCRIPT_DIR}
55
echo "Booting Sonic Pi on Linux..."
6-
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 TAU_DAEMON_PORT=$8 _build/"${MIX_ENV:-dev}"/rel/tau/bin/tau start
6+
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 TAU_DAEMON_PORT=$8 _build/"${MIX_ENV:-prod}"/rel/tau/bin/tau start

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -e # Quit script on error
33
SCRIPT_DIR="$(dirname "$0")"
44
cd ${SCRIPT_DIR}
55
echo "Booting Sonic Pi on macOS..."
6-
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 TAU_DAEMON_PORT=$8 _build/"${MIX_ENV:-dev}"/rel/tau/bin/tau start
6+
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 TAU_DAEMON_PORT=$8 _build/"${MIX_ENV:-prod}"/rel/tau/bin/tau start

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ set TAU_API_PORT=%6%
1414
set TAU_SPIDER_PORT=%7%
1515
set TAU_DAEMON_PORT=%8%
1616

17-
IF NOT DEFINED MIX_ENV SET "MIX_ENV=dev"
17+
IF NOT DEFINED MIX_ENV SET "MIX_ENV=prod"
1818

1919
_build\%MIX_ENV%\rel\tau\bin\tau start

app/win-prebuild.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cd %~dp0
2323
rmdir server\native\erlang /s /q
2424
rmdir server\native\plugins /s /q
2525
rmdir server\erlang\tau\priv /s /q
26+
forfiles /p server\erlang\tau\priv /s /m *.dll /c "cmd /c del @file"
2627

2728
REM Build external delendencies and copy to build tree
2829
@echo Building external binary dependencies...
@@ -55,6 +56,8 @@ forfiles /p gui\qt\lang /s /m *.ts /c "cmd /c %QT_INSTALL_LOCATION%\bin\lrelease
5556

5657
@echo Compiling Erlang/Elixir files...
5758
cd %~dp0\server\erlang\tau
59+
60+
IF NOT DEFINED MIX_ENV SET "MIX_ENV=prod"
5861
cmd /c mix local.hex --force
5962
cmd /c mix deps.get
6063
cmd /c mix release --overwrite

0 commit comments

Comments
 (0)