Changeset 3394 for sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/creating_webservice.html
- Timestamp:
- 03/03/10 09:27:59 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/creating_webservice.html
r3393 r3394 67 67 countries.</p> 68 68 <p>First, create a PostGIS-enabled database and name it <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt>. For 69 that you can launch an <tt class="docutils literal"><span class="pre">SQL</span> <span class="pre">Shell</span></tt> and enter:</p>70 <div class="highlight-python"><pre>CREATE DATABASE mapfish_workshop TEMPLATE= template_postgis;</pre>69 that you can launch an <tt class="docutils literal"><span class="pre">SQL</span> <span class="pre">Shell</span></tt> (psql -U postgres) and enter:</p> 70 <div class="highlight-python"><pre>CREATE DATABASE mapfish_workshop TEMPLATE=postgis_template;</pre> 71 71 </div> 72 72 <p>Then, open the explorer, go into the <tt class="docutils literal"><span class="pre">/home/live/mapfish/mapfish_workshop_fossgis2010/data</span></tt> … … 88 88 </div> 89 89 <p>by this one:</p> 90 <div class="highlight-python"><pre>sqlalchemy.url = postgres://postgres:postgres@localhost:543 2/mapfish_workshop</pre>90 <div class="highlight-python"><pre>sqlalchemy.url = postgres://postgres:postgres@localhost:5433/mapfish_workshop</pre> 91 91 </div> 92 92 <p>The connection string specifies that the <tt class="docutils literal"><span class="pre">postgres</span></tt> driver must be used, the 93 database system listens on <tt class="docutils literal"><span class="pre">localhost</span></tt> and on <tt class="docutils literal"><span class="pre">port</span></tt> 543 2, and the name of94 the database is <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt>. </p>93 database system listens on <tt class="docutils literal"><span class="pre">localhost</span></tt> and on <tt class="docutils literal"><span class="pre">port</span></tt> 5433, and the name of 94 the database is <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt>. (if it’s not working, test also with port 5432, which is the normal port)</p> 95 95 </div> 96 96 <div class="section" id="creating-web-service">
