onlinework commited on
Commit
377b824
·
verified ·
1 Parent(s): 3e90a8d

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +7 -2
run.sh CHANGED
@@ -1,6 +1,11 @@
1
  #!/bin/bash
2
 
3
- # Careful: can't create tmp files from this script
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
+