開發(fā)環(huán)境

2018-01-09 15:22 更新
  • install nginx mysql python3.6 node
  • git clone https://github.com/cookieY/Yearning.git
  • 編輯 Yearning/src/deploy.conf
    1. [mysql]
    2. db = 所創(chuàng)建的庫(kù)名
    3. address = 數(shù)據(jù)庫(kù)地址
    4. port = 端口
    5. password = 數(shù)據(jù)庫(kù)密碼
    6. username = 數(shù)據(jù)庫(kù)用戶
    7. [host]
    8. ipaddress = 服務(wù)器外網(wǎng)ip地址
    9. [Inception]
    10. ip = Inception地址
    11. port = Inception端口
    12. user = Inception用戶名
    13. password = Inception密碼
    14. backupdb = 備份數(shù)據(jù)庫(kù)地址
    15. backupport = 備份數(shù)據(jù)庫(kù)端口
    16. backupuser = 備份數(shù)據(jù)庫(kù)用戶名
    17. backuppassword = 備份數(shù)據(jù)庫(kù)密碼

  1. pip3 install -r requirements.txt
  2. python3 manage.py makemigrations && python3 manage.py migrate
  3. python3 manage.py createsuperuser admin
  4. echo "from core.models import Account;Account.objects.create_user(username='admin', password='Yearning_admin', group='admin',is_staff=1)" | python3 manage.py shell
  5. cd $YEARNING_HOME/webpage && npm install
  6. python3 $YEARNING_HOME/runserver.py
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)