Spaces:
Running
Running
onlinework
commited on
Update run.sh
Browse files
run.sh
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
#
|
4 |
-
cat nginx.conf | sed "s|API_URL|${API_URL}|g" > /etc/nginx/sites-available/default
|
|
|
|
|
5 |
service nginx start
|
|
|
|
|
6 |
sleep infinity
|
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Replace placeholder in nginx configuration
|
4 |
+
cat nginx.conf | sed "s|API_URL|${API_URL:-http://127.0.0.1:7861}|g" > /etc/nginx/sites-available/default
|
5 |
+
|
6 |
+
# Start Nginx service
|
7 |
service nginx start
|
8 |
+
|
9 |
+
# Keep container running
|
10 |
sleep infinity
|
11 |
+
|