Data-Stag

 view release on metacpan or  search on metacpan

homepage/dbstag-tutorial.sgml  view on Meta::CPAN


    <sect2 id="setup_bdgp">
      <title>Setting up (For use within BDGP)</title>
      <para>
	There are two environment variables DBStag needs to know
	about - one is the config file specifying which databases are
	available to BDGP users, the other specifies the location(s)
	of the actual Stag Templates themselves

	<programlisting>
setenv DBSTAG_DBIMAP_FILE "/data/bioconf/bioresources.conf"
setenv DBSTAG_TEMPLATE_DIRS ".:/data/bioconf/templates"
	</programlisting>

	You may wish to add these to your .aliases file so they are
	permanently available. You may also wish to change these
	later on; for ple, if you start writing your own templates
	you may wish to place your local development template
	directory first on the path
      </para>

      <para>
	Stag requires certain executables and perl libraries - the
	most p to date version should be installed BDGP-wide, if not
	speak to me. You may also wish to add the "live templates" to
	your PATH; there are a lot of executables here (one for every
	template) which is why they n't go in /usr/local/bin
	<programlisting>
setenv PATH "${PATH}:/usr/local/bdgp/stagbin"
	</programlisting>
	
	Now you're ready to go!
      </para>
    </sect2>
    <sect2 id="setup_nonlocal">
      <title>Setting up (For use outside BDGP)</title>
      <para>
	You have a bit more work to do if you want to follow this
	tutorial for example on your laptop. The steps should be



( run in 1.847 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )