首页 > 系统服务 > 详细

ubuntu 搭建Mercurial 服务(nginx)

时间:2016-07-06 14:38:17      阅读:219      评论:0      收藏:0      [点我收藏+]
ubuntu 搭建Mercurial 服务(nginx)

环境:ubuntu 12.05  Mercurial
步骤:
(1)安装nginx 和 Mercurial: sudo apt-get install nginx mercurial
(2)新建仓库目录:sudo mkdir /home/www      sudo chmod -R 777 www     mkdir hg;
(3)新建配置文件:用每个项目hgrc或者新建一个hgweb.config文件,内容如下:
[web]
push_ssl = false
allow_push = *
encoding = "UTF-8"
[paths]
/hg = /home/www/hg
(4)重启hg serve: hg serve 或 hg serve -d -a localhost --webdir-conf hgweb.config
(5)配置nginx:
server {
  listen 80 default_server;
  server_name hg.pengcz.com;
  location / {
    proxy_pass http://localhost:8000;
  }
} 可能出现的问题:no username supplied (see
"hg help config") 解决:vi ./hg/hgrc [ui] username = daxia<daxia@pengcz.com>

 

ubuntu 搭建Mercurial 服务(nginx)

原文:http://www.cnblogs.com/pengcz/p/5646744.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!