Integrate posthog and log events to track usage (#17)
This commit is contained in:
9
setup.sh
9
setup.sh
@@ -1,5 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Call function to send telemetry event
|
||||
log_event() {
|
||||
if [ -n $1 ]; then
|
||||
python scripts/tracking.py $1
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to check if a command exists
|
||||
command_exists() {
|
||||
command -v "$1" &> /dev/null
|
||||
@@ -35,6 +42,7 @@ activate_poetry_env() {
|
||||
}
|
||||
|
||||
install_dependencies_after_poetry_env() {
|
||||
echo "Installing playwright dependencies..."
|
||||
playwright install
|
||||
}
|
||||
|
||||
@@ -100,6 +108,7 @@ main() {
|
||||
install_dependencies_after_poetry_env
|
||||
run_alembic_upgrade
|
||||
create_organization
|
||||
log_event "skyvern-oss-setup-complete"
|
||||
echo "Setup completed successfully."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user