Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add start.sh script

Blue Mouse3d1cf6ed02f6
diff --git a/web/start.sh b/web/start.sh
new file mode 100755
index 000000000..dcc3c080f
--- /dev/null
+++ b/web/start.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# This script is used to start the production server on managed servers like Hetzner
+
+# Check if .env file exists
+if [ -f .env ]; then
+ # Read .env file and format variables for inline usage
+ ENV_VARS=$(cat .env | grep -v '^#' | xargs)
+
+ # Run npm start with variables inline
+ $ENV_VARS npm run start
+else
+ echo "Error: .env file not found"
+ exit 1
+fi