More improvements to bootstrap
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#!/bin/bash
|
||||
# bootstrap.sh - Initialize SIA (Self-Improving Agent) environment for cloud deployment
|
||||
|
||||
set -eo pipefail # Exit on any error, pipe failures
|
||||
|
||||
# Check if required environment variables are set
|
||||
if [ -z "$SIA_REPO_URL" ]; then
|
||||
echo "Error: SIA_REPO_URL environment variable is not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create directory structure
|
||||
echo "Creating directory structure..."
|
||||
mkdir -p "/root/data/iterations"
|
||||
@@ -29,10 +34,14 @@ npm install
|
||||
npm run build
|
||||
ln -s "/root/sia/web/dist" "/root/static"
|
||||
|
||||
# Install SIA dependencies
|
||||
echo "Installing SIA dependencies..."
|
||||
"/root/sia/scripts/install.sh"
|
||||
|
||||
# Finetune model
|
||||
echo "Finetuning model..."
|
||||
train
|
||||
|
||||
# Start SIA using restart script
|
||||
echo "Start restart script..."
|
||||
echo "Run restart script..."
|
||||
"/root/sia/scripts/restart.sh"
|
||||
Reference in New Issue
Block a user