Create run.sh
Browse files
run.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Start Tailscale daemon in background
|
| 4 |
+
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &
|
| 5 |
+
|
| 6 |
+
# Give it a few seconds to initialize
|
| 7 |
+
sleep 3
|
| 8 |
+
|
| 9 |
+
# Bring up the Tailscale interface (without SSH)
|
| 10 |
+
tailscale up --netfilter-mode=off
|
| 11 |
+
|
| 12 |
+
# Start Flask app via Gunicorn
|
| 13 |
+
exec gunicorn --bind 0.0.0.0:7860 app:app
|