开发环境
2018-01-09 15:22 更新
install nginx mysql python3.6 node
git clone https://github.com/cookieY/Yearning.git
编辑 Yearning/src/deploy.conf
[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
cd $YEARNING_HOME/webpage && npm install
python3 $YEARNING_HOME/runserver.py
以上内容是否对您有帮助:
← 生产环境
更多建议: