Files
grafana/e2e-playwright/start-server
Ashley Harrison 9b18987df1 Playwright: Changes needed for enterprise tests (#110424)
* enterprise scaffolding

* clean up gitignore, add enterprise to playwright config

* add workflows

* setup enterprise in the workflows

* update permissions

* try update license path

* add TODO

* undo workflow changes

* remove commands

* add extensions folder

* update gitignore

* include the whole public folder

* add comment

* review comments
2025-09-03 15:45:54 +01:00

24 lines
519 B
Bash
Executable File

#!/bin/bash
# Ensure we're in the Grafana root directory
cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1
. scripts/grafana-server/variables
LICENSE_PATH=""
if [ "$1" = "enterprise" ]; then
if [ "$2" != "dev" ] && [ "$2" != "debug" ]; then
LICENSE_PATH=$2/license.jwt
else
LICENSE_PATH=$3/license.jwt
fi
fi
if [ "$BASE_URL" != "" ]; then
echo -e "BASE_URL set, skipping starting server"
else
./scripts/grafana-server/start-server $LICENSE_PATH > scripts/grafana-server/server.log
fi