]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Setting_up_a_development_environment.mdwn
Added a comment
[ikiwiki.git] / doc / forum / Setting_up_a_development_environment.mdwn
1 Hi,
2
3 I'm trying to setup a development environment to hack on the comments plugin and I'm having problems getting my Ikiwiki CGI to use my git checkout as the libdir and templatedir instead of the system one.
4
5 My <tt>.setup</tt> contains:
6
7         srcdir => '/home/francois/wiki/testblog',
8         destdir => '/var/www/testblog',
9         url => 'http://localhost/testblog',
10         cgiurl => 'http://localhost/testblog/ikiwiki.cgi',
11         cgi_wrapper => '/var/www/testblog/ikiwiki.cgi',
12         templatedir => '/home/francois/devel/remote/ikiwiki/templates',
13         underlaydir => '/home/francois/devel/remote/ikiwiki/doc',
14         libdir => '/home/francois/devel/remote/ikiwiki',
15         ENV => {},
16         git_wrapper => '/home/francois/wiki/testblog.git/hooks/post-update',
17
18 Now, if I modify <tt>~/devel/remote/ikiwiki/templates/comment.tmpl</tt>, my changes don't appear when I add a comment to a blog post. On the other hand, if I hack <tt>/usr/share/ikiwiki/templates/comment.tmpl</tt> and cause the page to be rebuilt by adding a new comment then that does have an effect.
19
20 The same is true for <tt>~/devel/remote/ikiwiki/Ikiwiki/Plugin/comments.pm</tt> (doesn't appear to be used) and <tt>/usr/share/perl5/Ikiwiki/Plugin/comments.pm</tt> (my hacks affect pages as they are recompiled).
21
22 I must be missing something obvious, but the [[ikiwiki development environment tips]] didn't help me...
23
24 Cheers,
25
26 [[Francois|fmarier]]
27
28 > I updated the [[ikiwiki development environment tips]] page with my
29 > approach to running ikiwiki from the git checkout (with changes). For
30 > the templates, also make sure that you do not have custom templates in
31 > your src dir as they will be used instead of those from the template
32 > dir if found. --GB