使用Phabricator做Code-Review介绍.docx

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
使用Phabricator做Code Review的介绍 Haiyong Lei Phabricator的安装 下载Phabricator 在安装目录/opt/codereview下运行: git clone /phacility/libphutil.git git clone /phacility/arcanist.git git clone /phacility/phabricator.git sudo ./phabricator/scripts/install/install_ubuntu.sh 配置storage 在安装目录/opt/codereview/phabricator下运行 sudo ./bin/config set mysql.host localhost // mysql主机地址 sudo ./bin/config set mysql.user root // mysql用户名 sudo ./bin/config set mysql.pass 123456 // mysql用户密码 sudo ./bin/storage upgrade 若从本机登入MySQL遇到Access denied for user root@localhost问题,运行: mysql -u root -p -h 进入MySQL shell后,输入: GRANT ALL PRIVILEGES ON *.* TO root@% WITH GRANT OPTION; 配置Apache2 site配置文件: 新建/etc/apache2/sites-available/phabircator文件: VirtualHost * # Change this to the domain which points to your host. ServerName localhost # Change this to the path where you put phabricator when you checked it # out from GitHub when following the Installation Guide. # # Make sure you include /webroot at the end! DocumentRoot /opt/codereview/phabricator/webroot RewriteEngine on RewriteRule ^/rsrc/(.*) - [L,QSA] RewriteRule ^/favicon.ico - [L,QSA] RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA] Directory /opt/codereview/phabricator/webroot #Require all granted //手册里有这一行,删除 /Directory /VirtualHost 可选,修改/etc/apache2/http.conf: 添加一行: ServerName localhost 运行apache2: sudo a2dissite default sudo a2ensite phabricator sudo /etc/init.d/apache2 restart 用浏览器测试 用浏览器打开http://192.168.xxx.xxx/测试,可以看到admin用户注册界面,注册一个admin用户用以完成后续设置。注意不要在浏览器地址栏输入localhost测试,Phabricator不支持后一地址。 Post-install设置 Set Base Uri: sudo ./bin/config set phabricator.base-uri http://192.168.xxx.xxx/ Set Repo Dir: sudo mkdir -p /var/repo sudo chmod a+w /var/repo Start Phd Daemon: sudo ./bin/phd start 注:每次修改Phabricator配置,都会要求重启Phd。

文档评论(0)

wx171113 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档