运维网's Archiver
论坛
›
git/gitlab
› openshift+django+mysql git push时候不同步数据库解决方法
dream789
发表于 2016-10-24 10:52:36
openshift+django+mysql git push时候不同步数据库解决方法
1. ssh登陆
2. cd python2.6
3. source virtenv/bin/activate
4. python path_to_manage.py/manage.py syncdb
这时通常css会丢失,需要手动修复:
Python path_to_manage.py/manage.py collectstatic --noinput
页:
[1]
查看完整版本:
openshift+django+mysql git push时候不同步数据库解决方法