mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-01 18:20:06 +00:00
20 lines
736 B
Bash
20 lines
736 B
Bash
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# check alembic
|
|
alembic upgrade head
|
|
alembic check
|
|
|
|
if [ ! -f ".streamlit/secrets.toml" ]; then
|
|
echo "Creating organization and API token..."
|
|
org_output=$(python scripts/create_organization.py Skyvern-Open-Source)
|
|
api_token=$(echo "$org_output" | awk '/token=/{gsub(/.*token='\''|'\''.*/, ""); print}')
|
|
# Update the secrets-open-source.toml file
|
|
echo -e "[skyvern]\nconfigs = [\n {\"env\" = \"local\", \"host\" = \"http://skyvern:8000/api/v1\", \"orgs\" = [{name=\"Skyvern\", cred=\"$api_token\"}]}\n]" > .streamlit/secrets.toml
|
|
echo ".streamlit/secrets.toml file updated with organization details."
|
|
fi
|
|
|
|
# Run the command and pass in all three arguments
|
|
xvfb-run python -m skyvern.forge
|