File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 2
2
# Don't exit immediately on errors so we can see what's happening
3
3
# set -e
4
4
5
+ # Set necessary environment variables
6
+ # Add environment variables to .bashrc
7
+ cat >> ~ /.bashrc << EOL
8
+ export TERM=xterm-256color
9
+ export weight_root="/app/weights"
10
+ export index_root="/app/logs"
11
+ export rmvpe_root="/app/assets/rmvpe"
12
+ EOL
13
+
14
+ # Source .bashrc to apply changes
15
+ source ~ /.bashrc
16
+ echo " Added environment variables to ~/.bashrc and sourced it"
17
+
5
18
echo " Starting RVC server..."
6
19
7
20
# Create the weights directory and symlink all model files
8
21
echo " Setting up model symlinks..."
9
22
mkdir -p /app/weights
23
+ mkdir -p /app/None
10
24
# Remove any existing symlinks first to avoid errors
11
25
rm -f /app/weights/*
12
26
# Create symlinks for all model files
13
27
ln -sf /app/assets/weights/* /app/weights/
28
+ ln -sf /app/assets/weights/* /app/None/
14
29
echo " Model symlinks created:"
15
30
ls -la /app/weights/
16
-
31
+ ls -la /app/None/
17
32
# Create log directory
18
33
mkdir -p /app/server/logs
19
34
You can’t perform that action at this time.
0 commit comments