flk / app.py
Geek7's picture
Update app.py
af3119d verified
raw
history blame
325 Bytes
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)