File tree Expand file tree Collapse file tree 4 files changed +37
-5
lines changed Expand file tree Collapse file tree 4 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 2
2
set -e # Quit script on error
3
3
SCRIPT_DIR=" $( dirname " $0 " ) "
4
4
cd ${SCRIPT_DIR}
5
+
6
+ # Close standard output file descriptor
7
+ exec 1< & -
8
+ # Close standard error file descriptor
9
+ exec 2< & -
10
+
11
+ # Close standard in file descriptor
12
+ exec < & -
13
+
14
+ # Open standard output file for read and write.
15
+ exec 1>> " $9 "
16
+
17
+ # Redirect standard error to standard output
18
+ exec 2>&1
19
+
5
20
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:- prod} " /rel/tau/bin/tau start
21
+
22
+ 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 TAU_LOG_PATH=$9 _build/" ${MIX_ENV:- prod} " /rel/tau/bin/tau start
Original file line number Diff line number Diff line change 2
2
set -e # Quit script on error
3
3
SCRIPT_DIR=" $( dirname " $0 " ) "
4
4
cd ${SCRIPT_DIR}
5
+
6
+ # Close standard output file descriptor
7
+ exec 1< & -
8
+ # Close standard error file descriptor
9
+ exec 2< & -
10
+
11
+ # Close standard in file descriptor
12
+ exec < & -
13
+
14
+ # Open standard output file for read and write.
15
+ exec 1>> " $9 "
16
+
17
+ # Redirect standard error to standard output
18
+ exec 2>&1
19
+
5
20
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:- prod} " /rel/tau/bin/tau start
21
+
22
+ 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 TAU_LOG_PATH=$9 _build/" ${MIX_ENV:- prod} " /rel/tau/bin/tau start
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ set TAU_LOG_PATH=%9%
17
17
18
18
IF NOT DEFINED MIX_ENV SET " MIX_ENV = prod"
19
19
20
- _build\%MIX_ENV% \rel\tau\bin\tau start
20
+ _build\%MIX_ENV% \rel\tau\bin\tau start > " %9 % " 2 >& 1
Original file line number Diff line number Diff line change 1
- import Config
1
+ import Config
2
2
3
3
config :tau ,
4
4
handle_otp_reports: true ,
@@ -8,5 +8,5 @@ config :logger,
8
8
backends: [ { LoggerFileBackend , :error_log } ]
9
9
10
10
config :logger , :error_log ,
11
- path: System . get_env ( "TAU_LOG_PATH" ) ,
11
+ path: System . fetch_env! ( "TAU_LOG_PATH" ) ,
12
12
level: :info
You can’t perform that action at this time.
0 commit comments