multimodalart HF Staff commited on
Commit
fc18c76
·
1 Parent(s): 13f64bb

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +2 -11
start.sh CHANGED
@@ -1,17 +1,8 @@
1
  #!/bin/bash
2
 
3
  # Start Nginx and output to /dev/null
4
- service nginx start &> /dev/null
5
-
6
- # Check if Nginx started successfully
7
- if [ $? -ne 0 ]; then
8
- echo "Nginx failed to start"
9
- echo "Nginx error log:"
10
- chown www-data:www-data /var/log/nginx/error.log
11
- chmod 644 /var/log/nginx/error.log
12
- cat /var/log/nginx/error.log
13
- exit 1
14
- fi
15
 
16
  # If Nginx started successfully, then start the Flask application
17
  python app.py
 
1
  #!/bin/bash
2
 
3
  # Start Nginx and output to /dev/null
4
+ nginx -t
5
+ #service nginx start &> /dev/null
 
 
 
 
 
 
 
 
 
6
 
7
  # If Nginx started successfully, then start the Flask application
8
  python app.py