script/mvcar/sbin/start.sh

8 lines
141 B
Bash

#!/bin/bash
# 启动后端Flask应用
cd /app/backend
nohup python app.py > /app/logs/flask.log 2>&1 &
# 启动nginx
nginx -g "daemon off;"