codecamp

生产环境

[mysql]
db = 所创建的库名
address = 数据库地址
port = 端口
password = 数据库密码
username = 数据库用户
[host]
ipaddress = 服务器外网ip地址
[Inception]
ip = Inception地址
port = Inception端口
user = Inception用户名
password  = Inception密码
backupdb = 备份数据库地址
backupport = 备份数据库端口
backupuser = 备份数据库用户名
backuppassword = 备份数据库密码
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


cp -rf $YEARNING_HOME/webpage/dist/* $NGINX_HOME/html/


systemctl start nginx    
首页
开发环境
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

使用手册

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }