1) Apache httpd kurulur
2) mercurial 2.1.1 kurulur
3) python 2.6.6 kurulur
4) http://mercurial.selenic.com/wiki/Download
uzerinden Mercurial-2.1.1 (32-bit py2.6) python library'si kurulur
5) deneme yapmak icin
command prompt ta python de
import mercurial
yaz, calisiyorsa, library yi yukledin demektir.
6) Asagidaki hgweb.cgi yazilir,
apache nin cgi-bin'inine atilir.
#!D:/Python26/python.exe -u
#
# An example hgweb CGI script, edit as necessary
# See also http://mercurial.selenic.com/wiki/PublishingRepositories
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "D:\Apache2.2\cgi-bin\hgweb.config"
# Uncomment and adjust if Mercurial is not installed system-wide:
#import sys; sys.path.insert(0, "/path/to/python/lib")
# Uncomment to send python tracebacks to the browser if an error occurs:
import cgitb; cgitb.enable()
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb(config)
wsgicgi.launch(application)
7) Yine ayni sekilde cgi-bin'e
hgweb.config dosyasi
[paths]
/Production = D:/repository/JavaMail/*
/WSTest = D:/repository/WSTest/*
[web]
allow_push = *
style = monoblue
contact = xxx.yyy@test.com.ua
push_ssl = false
Atilir.
8) DAha sonra apache'nin config'inde httpd.conf a
ScriptAlias /hg "D:\Apache2.2\cgi-bin\hgweb.cgi"
eklenir.
Search Blog
Thursday, March 15, 2012
Mercurial Hgweb CGI Windows Apache Howto
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment