install nginx mysql python3.6 node
git clone https://github.com/cookieY/Yearning.git
編輯 Yearning/src/deploy.conf
[mysql]
db = 所創(chuàng)建的庫(kù)名
address = 數(shù)據(jù)庫(kù)地址
port = 端口
password = 數(shù)據(jù)庫(kù)密碼
username = 數(shù)據(jù)庫(kù)用戶
[host]
ipaddress = 服務(wù)器外網(wǎng)ip地址
[Inception]
ip = Inception地址
port = Inception端口
user = Inception用戶名
password = Inception密碼
backupdb = 備份數(shù)據(jù)庫(kù)地址
backupport = 備份數(shù)據(jù)庫(kù)端口
backupuser = 備份數(shù)據(jù)庫(kù)用戶名
backuppassword = 備份數(shù)據(jù)庫(kù)密碼
pip3 install -r requirements.txt
python3 manage.py makemigrations && python3 manage.py migrate
python3 manage.py createsuperuser admin
echo "from core.models import Account;Account.objects.create_user(username='admin', password='Yearning_admin', group='admin',is_staff=1)" | python3 manage.py shell
cd $YEARNING_HOME/webpage && npm install
python3 $YEARNING_HOME/runserver.py
更多建議: