社区提交代码

1、安装devstack调试代码
python manage.py runserver 0.0.0.0:3333 

新起一个端口进行调试
2、怎么使修改的代码生效
修改.py文件后重启一下即可。
修改js文件后,如果不生效需要重新编译一下
stack@ubuntu:~/horizon$ python manage.py compress --force
stack@ubuntu:~/horizon$ python manage.py collectstatic
yes
stack@ubuntu:~/horizon$ python manage.py runserver 0.0.0.0:8073
/opt/stack/horizon/horizon# django-admin.py compilemessages

或者(需要根据修改的文件目录确定)
/opt/stack/horizon/openstack-dashboard# django-admin.py compilemessages

重启服务,即重启,(步骤1)

提交代码:
配置git环境
没有git review 先下载
npm install git-review

1.git clone 下horizon的代码
2.git remote add gerrit
引用
http://zouhy:[email protected]/openstack/horizon //zouhy:后面的密码不能有“/”
//添加错误时先git remote rm gerrit,然后再添加

3.
引用
git reivew -s

4.缺少commit-msg时
在hook/目录下
wget https://review.openstack.org/tools/hooks/commit-msg



猜你喜欢

转载自zouhuiying.iteye.com/blog/2361174