You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
546 B
Bash

#!/bin/bash
#uwsgi --ini /home/myproject/uwsgi.ini&&
export MYSQL_DATABASE="general_platform"
export MYSQL_USER="general"
export MYSQL_PASSWORD="#Yaxin0504"
export MYSQL_HOST="127.0.0.1"
export MYSQL_PORT="3306"
export SERVER_IP="192.168.10.21:8000"
#while ! nc -z db 3306 ; do
# echo "Waiting for the MySQL Server"
# sleep 3
#done
pip install -r requirements.txt&&
python manage.py makemigrations&&
python manage.py migrate&&
nohup python3 manage.py runserver 0.0.0.0:8000 &
echo '通用平台项目启动完成'
tail -f /dev/null