23 lines
494 B
Bash
Executable File
23 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
# BSN Chatbot Autostart
|
|
# Flask App + Cloudflare Tunnel
|
|
|
|
cd /home/hermes/workspace/bsn-chatbot
|
|
|
|
# Flask App
|
|
echo "Starting Flask..."
|
|
/home/hermes/venv/bin/python app.py &
|
|
FLASK_PID=$!
|
|
sleep 2
|
|
|
|
# Cloudflare Tunnel
|
|
echo "Starting Cloudflare Tunnel..."
|
|
cloudflared tunnel --origincert /home/hermes/workspace/bsn-chatbot/cert.pem run bsn-chat &
|
|
TUNNEL_PID=$!
|
|
|
|
echo "Flask PID: $FLASK_PID"
|
|
echo "Tunnel PID: $TUNNEL_PID"
|
|
echo "chat.datenhimmel.work sollte in ~15s erreichbar sein"
|
|
|
|
wait
|