Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Run the shell script to start the Flask app with Gunicorn
|
| 5 |
-
os.system(
|
|
|
|
| 1 |
import os
|
| 2 |
+
import stat
|
| 3 |
|
| 4 |
if __name__ == "__main__":
|
| 5 |
+
# Set the permissions of the shell script to be executable
|
| 6 |
+
script_path = './start_server.sh'
|
| 7 |
+
os.chmod(script_path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) # rwxrwxrwx
|
| 8 |
+
|
| 9 |
# Run the shell script to start the Flask app with Gunicorn
|
| 10 |
+
os.system(script_path)
|