PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/core/z_install.html

https://code.google.com/p/zotonic/
HTML | 46 lines | 38 code | 8 blank | 0 comment | 0 complexity | 3205a06d4b30a2c2050f64c7c38ba56b MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module z_install</title>
 5<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
 6</head>
 7<body bgcolor="white">
 8<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
 9<hr>
10
11<h1>Module z_install</h1>
12<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Install Zotonic, loads the datamodel into the database  
13Assumes the database has already been created (which normally needs superuser permissions anyway).
14<p>Copyright Š 2009 Marc Worrell
15  Date: 2009-04-07
16 </p>
17
18<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
19
20<h2><a name="description">Description</a></h2><p>Install Zotonic, loads the datamodel into the database  
21Assumes the database has already been created (which normally needs superuser permissions anyway)</p>
22 
23  CREATE DATABASE zotonic WITH OWNER = zotonic ENCODING = 'UTF8';
24  CREATE LANGUAGE "plpgsql";
25<h2><a name="index">Function Index</a></h2>
26<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#install-1">install/1</a></td><td>Install the database for the given host.</td></tr>
27<tr><td valign="top"><a href="#pre_install-2">pre_install/2</a></td><td>Perform pre-installation commands.</td></tr>
28</table>
29
30<h2><a name="functions">Function Details</a></h2>
31
32<h3 class="function"><a name="install-1">install/1</a></h3>
33<div class="spec">
34<p><tt>install(Host) -&gt; ok</tt></p>
35</div><p>Install the database for the given host.</p>
36
37<h3 class="function"><a name="pre_install-2">pre_install/2</a></h3>
38<div class="spec">
39<p><tt>pre_install(X1::Host, SiteProps) -&gt; ok</tt></p>
40</div><p>Perform pre-installation commands.</p>
41<hr>
42
43<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
44<p><i>Generated by EDoc, Aug 12 2011, 20:01:40.</i></p>
45</body>
46</html>