Skip to content

Commit d1504d1

Browse files
committed
rmvpe root
1 parent 597213d commit d1504d1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

rvc/scripts/start.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,33 @@
22
# Don't exit immediately on errors so we can see what's happening
33
# set -e
44

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+
518
echo "Starting RVC server..."
619

720
# Create the weights directory and symlink all model files
821
echo "Setting up model symlinks..."
922
mkdir -p /app/weights
23+
mkdir -p /app/None
1024
# Remove any existing symlinks first to avoid errors
1125
rm -f /app/weights/*
1226
# Create symlinks for all model files
1327
ln -sf /app/assets/weights/* /app/weights/
28+
ln -sf /app/assets/weights/* /app/None/
1429
echo "Model symlinks created:"
1530
ls -la /app/weights/
16-
31+
ls -la /app/None/
1732
# Create log directory
1833
mkdir -p /app/server/logs
1934

0 commit comments

Comments
 (0)