import os | |
import stat | |
if __name__ == "__main__": | |
# Set the permissions of the shell script to be executable | |
script_path = './start_server.sh' | |
os.chmod(script_path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) # rwxrwxrwx | |
# Run the shell script to start the Flask app with Gunicorn | |
os.system(script_path) |