Delete start.sh
Browse files
start.sh
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
# Start your application in the background
|
4 |
-
python3 main.py &
|
5 |
-
|
6 |
-
# Start localtunnel and expose port 7860, replace "yourapp" with your desired subdomain
|
7 |
-
lt --port 7860 --subdomain yourapp &
|
8 |
-
|
9 |
-
# Wait a bit to ensure the localtunnel service is up
|
10 |
-
sleep 5
|
11 |
-
|
12 |
-
# Retrieve and display the localtunnel password
|
13 |
-
echo "Retrieving Localtunnel password..."
|
14 |
-
PASSWORD=$(curl https://loca.lt/mytunnelpassword)
|
15 |
-
echo "Localtunnel Password: $PASSWORD"
|
16 |
-
|
17 |
-
# Keep the script running to maintain the processes in the foreground
|
18 |
-
# This is important in Docker containers to not terminate the container
|
19 |
-
wait
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|