]> sipb.mit.edu Git - ikiwiki.git/commitdiff
(no commit message)
authorjustint <justint@web>
Thu, 14 Oct 2010 20:42:23 +0000 (20:42 +0000)
committerJoey Hess <joey@kitenet.net>
Thu, 14 Oct 2010 20:42:23 +0000 (20:42 +0000)
doc/tips/ikiwiki_on_Mac_OS_X_Snow_Leopard.mdwn

index 38df197084845a7098d5f8a2f77090234275ec8a..d685af0d00855aa44fbb5c534c022e25a39332ba 100644 (file)
@@ -109,6 +109,50 @@ sudo make install
 it installed without issue so I'm baffled why it didn't install from command line.
 
 
+## setup file
+
+#!/usr/bin/perl
+# Ikiwiki setup automator.
+#
+# This setup file causes ikiwiki to create a wiki, check it into revision
+# control, generate a setup file for the new wiki, and set everything up.
+#
+# Just run: ikiwiki -setup /etc/ikiwiki/auto.setup
+#
+# By default, it asks a few questions, and confines itself to the user's home
+# directory. You can edit it to change what it asks questions about, or to
+# modify the values to use site-specific settings.
+
+require IkiWiki::Setup::Automator;
+
+our $wikiname="your wiki";
+our $wikiname_short="yourwiki";
+our $rcs="git";
+our $admin="your name";
+use Net::Domain q{hostfqdn};
+our $domain="your.domain";                    
+
+IkiWiki::Setup::Automator->import(
+wikiname => $wikiname,
+adminuser => [$admin],
+rcs => $rcs,
+srcdir => "/opt/ikiwiki/$wikiname_short",
+destdir => "/Library/WebServer/Documents/$wikiname_short",
+repository => "/opt/ikiwiki/$wikiname_short.".($rcs eq "monotone" ? "mtn" : $rcs),
+dumpsetup => "/opt/ikiwiki/$wikiname_short.setup",
+url => "http://$domain/$wikiname_short",
+cgiurl => "http://$domain/cgi-bin/$wikiname_short/ikiwiki.cgi",
+cgi_wrapper => "/Library/WebServer/CGI-Executables/$wikiname_short/ikiwiki.cgi",
+adminemail => "your\@email.com",
+add_plugins => [qw{goodstuff websetup}],
+disable_plugins => [qw{}],
+libdir => "/opt/ikiwiki/.ikiwiki",
+rss => 1,
+atom => 1,
+syslog => 1,
+)
+
+
 ## turning on search plugin:
 
 I turned on the plugin from the setup page in ikiwiki but it gave an error when I went to search. Error "blah blah cgi-bin/omega/omega" does not exist or some such. I did a