60 lines
1.1 KiB
ReStructuredText
60 lines
1.1 KiB
ReStructuredText
Install
|
|
=====
|
|
|
|
.. _installation:
|
|
|
|
Installers
|
|
------------
|
|
|
|
If you plan to use SSL, be sure to set the hostname
|
|
|
|
.. code-block:: console
|
|
|
|
$ hostnamectl set-hostname qpod.webgis1.com
|
|
|
|
|
|
Installer scripts are available in the install directory and should be called from the base directory.
|
|
|
|
Download QuartzMap or use Git.
|
|
|
|
Change to the quartzmap directory
|
|
|
|
.. code-block:: console
|
|
|
|
$ git clone https://github.com/AcuGIS/quartzmap.git
|
|
$ cd quartzmap
|
|
|
|
If PostgreSQL is not installed, install it using /installer/postgres.sh
|
|
|
|
.. code-block:: console
|
|
|
|
$ ./installer/postgres.sh
|
|
|
|
|
|
Run the installer:
|
|
|
|
.. code-block:: console
|
|
|
|
$ ./installer/app-install.sh
|
|
|
|
|
|
Manual Installation
|
|
-------------------
|
|
|
|
To retrieve a list of random ingredients,
|
|
you can use the ``lumache.get_random_ingredients()`` function:
|
|
|
|
.. autofunction:: lumache.get_random_ingredients
|
|
|
|
The ``kind`` parameter should be either ``"meat"``, ``"fish"``,
|
|
or ``"veggies"``. Otherwise, :py:func:`lumache.get_random_ingredients`
|
|
will raise an exception.
|
|
|
|
.. autoexception:: lumache.InvalidKindError
|
|
|
|
For example:
|
|
|
|
>>> import lumache
|
|
>>> lumache.get_random_ingredients()
|
|
['shells', 'gorgonzola', 'parsley']
|