Skip to content

Instantly share code, notes, and snippets.

@meisa233
Created June 26, 2024 01:48
Show Gist options
  • Save meisa233/5e70f6c9945ef37e5e4be8f7b18ffbc5 to your computer and use it in GitHub Desktop.
Save meisa233/5e70f6c9945ef37e5e4be8f7b18ffbc5 to your computer and use it in GitHub Desktop.
#!/bin/bash

# 编译Python文件为pyc
python -m compileall -b .

# 启动Flask应用
gunicorn -w 4 -b 127.0.0.1:5000 flask_:app &

# 启动master脚本
python __pycache__/master.cpython-39.pyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment