Spaces:
Sleeping
Sleeping
Update run.sh
Browse files
run.sh
CHANGED
|
@@ -12,6 +12,8 @@
|
|
| 12 |
# Start Nginx
|
| 13 |
echo "Starting Nginx..."
|
| 14 |
service nginx start
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Assuming your backend server is a Python application that you want to run on port 8000.
|
| 17 |
# Adjust the command below to match how you start your backend server.
|
|
@@ -24,4 +26,5 @@ uvicorn app:app --host 0.0.0.0 --port 8000 --reload &
|
|
| 24 |
# Keep the script running to prevent the Docker container from exiting.
|
| 25 |
# This is necessary because running the backend server in the background
|
| 26 |
# would make the script exit immediately otherwise.
|
|
|
|
| 27 |
wait
|
|
|
|
| 12 |
# Start Nginx
|
| 13 |
echo "Starting Nginx..."
|
| 14 |
service nginx start
|
| 15 |
+
service nginx status
|
| 16 |
+
curl http://localhost:8080
|
| 17 |
|
| 18 |
# Assuming your backend server is a Python application that you want to run on port 8000.
|
| 19 |
# Adjust the command below to match how you start your backend server.
|
|
|
|
| 26 |
# Keep the script running to prevent the Docker container from exiting.
|
| 27 |
# This is necessary because running the backend server in the background
|
| 28 |
# would make the script exit immediately otherwise.
|
| 29 |
+
curl http://localhost:8000
|
| 30 |
wait
|